Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save DalavanCloud/a7ae916767aba5f32325252d5d0f4d5e to your computer and use it in GitHub Desktop.
Save DalavanCloud/a7ae916767aba5f32325252d5d0f4d5e 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