This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Change "About" text in author box titles for single posts | |
* | |
* @since 1.0.0 | |
* @param string $title | |
* @param string $context | |
* @return string | |
*/ | |
function ja_author_box_title( $title, $context ) { | |
if ( 'single' == $context ) { | |
$title = str_replace( 'About', 'Written by', $title ); | |
} | |
return $title; | |
} | |
add_filter( 'genesis_author_box_title', 'ja_author_box_title', 10, 2); |
Questions, comments, or suggestion for improvement? Leave a comment on the GitHub Gist page.