Remove filter from child theme
-
In a child theme, I want to change the custom ‘read more’ link text set in functions.php
// Custom more-link text add_filter( 'the_content_more_link', 'hemingway_custom_more_link', 10, 2 ); function hemingway_custom_more_link( $more_link, $more_link_text ) { return str_replace( $more_link_text, __('Continue reading', 'hemingway'), $more_link ); }I’ve read what i can understand about replacing functions, but can’t get the syntax right.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Remove filter from child theme’ is closed to new replies.