Skip to content

Instantly share code, notes, and snippets.

@cobaltapps
Last active March 7, 2019 02:06
Show Gist options
  • Save cobaltapps/097ea6672cfe24cf3bc0f2e46d3cd846 to your computer and use it in GitHub Desktop.
Save cobaltapps/097ea6672cfe24cf3bc0f2e46d3cd846 to your computer and use it in GitHub Desktop.
An example of what an applied filter might look like inside a theme when compared to a non filtered value.
// "Read More" text value without a filter.
$read_more_text = 'Continue reading...';
// "Read More" text value a filter applied.
$read_more_text = apply_filters( 'theme_read_more_text', 'Continue reading...' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment