WordPress: filters

Self-tutoring about WordPress: the tutor mentions filters.

The following is according to my understanding.

I mention in my post from yesterday about how one can cause a custom rendering to one post in WordPress by loading an extra stylesheet conditionally. However, there is another, perhaps better, way to do so, especially if it’s just for one post.

In WordPress, a filter is applied to content that will be served in order to change it somehow. For example, the filter might add words to the content, or html code if a different display style is desired. WordPress subdivides the content into many different parts, so it’s easy to filter just the part one might want to.

Source:

developer.wordpress.org: Filters

Jack of Oracle Tutoring by Jack and Diane, Campbell River, BC.

Leave a Reply