How to locate a front-end rendering function filter?

⚠️ Code snippets might not be compatible with the latest version of your theme. Always use a child theme to customize your theme, and test your code on a staging website before migrating to production.

Customizr has been built to be easily customizable 😉 not only for designers but also for developers.

There are two types of filters in Customizr :

  1. The value and boolean filters : those filters are used in the core to get a contextual information for example : ‘__is_home_empty’
  2. The front-end content filters : those filters allow a developer to alter any rendering function of the theme

When a rendering function is created in Customizr, its output (usually buffered with ob_start()  )  is assigned to a filter with the apply_filters()  function. That’s how I turned almost every front end content filtrable in the theme. In most cases, the filter has the same name of the function where it’s been created from.

Leave a comment

Your email address will not be published. Required fields are marked *

3 thoughts on “How to locate a front-end rendering function filter?”