Skip to content

Instantly share code, notes, and snippets.

@Dinamiko
Created October 31, 2016 11:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dinamiko/31eb5b96afe044106349d5cb74c2eb53 to your computer and use it in GitHub Desktop.
Save Dinamiko/31eb5b96afe044106349d5cb74c2eb53 to your computer and use it in GitHub Desktop.
<?php
function changing_dkpdf_header_title( $title ) {
if ( have_posts() ) : while ( have_posts() ) : the_post();
$title .= ' by ' . get_the_author_meta( 'display_name' );
endwhile; else:
endif;
return $title;
}
add_filter( 'dkpdf_header_title', 'changing_dkpdf_header_title' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment