<?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.