Modify core function.
-
I want to change the link-hover text for a post author in the post meta.
The core code is…
function get_the_author_link() { if ( get_the_author_meta('url') ) { return '<a href="' . esc_url( get_the_author_meta('url') ) . '" title="' . esc_attr( sprintf(__("Visit %s’s website"), get_the_author()) ) . '" rel="author external">' . get_the_author() . '</a>'; } else { return get_the_author(); } }I want to change the ‘Visit… website’ text.
UPDATE…
I can do it a different way, by replacing <?php the_author_link(); ?> in the post meta with this:
<?php echo '<a href="' . get_the_author_meta('url') . '" title="info about this author" rel="external">' . get_the_author() . '</a>';?>
The topic ‘Modify core function.’ is closed to new replies.