WordPress.org

Plugin Directory

Changeset 1147520


Ignore:
Timestamp:
04/27/15 20:01:00 (3 years ago)
Author:
LewisR
Message:

Added respect for title processing when generating PDF output, per https://wordpress.org/support/topic/filter-title-through-the_title?replies=3 .

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-post-to-pdf-enhanced/trunk/wp-post-to-pdf-enhanced.php

    r1146679 r1147520  
    368368                $html .= '<style>'.$this->options['customCss'].'</style>'; 
    369369            } 
    370             // Set some content to print 
    371             $html .= '<h1>' . html_entity_decode( $post->post_title, ENT_QUOTES ) . '</h1>'; 
     370            // Set some content to print, and allow processing of the page title by other means 
     371            $html .= apply_filters( 'wp_pdf_page_title', '<h1>' . html_entity_decode( apply_filters( 'the_title', $post->post_title ), ENT_QUOTES ) . '</h1>' ); 
    372372            // Display author name is set in config 
    373373            if ( isset( $this->options['authorDetail'] ) and ! $this->options['authorDetail'] == '' ) { 
Note: See TracChangeset for help on using the changeset viewer.