I'm developing plugin for personal purposes.
I want to filter content of a component. I know that I can hook to page content through `add_filter('content', 'fun_name');` but it does not contain component content.
In template component content is returned through `<?php get_component('component-3'); ?>`.
It seems that neither `add_filter('component', 'fun_name');` or `add_filter('component-3', 'fun_name');` work.
How to filter component content?
I want to filter content of a component. I know that I can hook to page content through `add_filter('content', 'fun_name');` but it does not contain component content.
In template component content is returned through `<?php get_component('component-3'); ?>`.
It seems that neither `add_filter('component', 'fun_name');` or `add_filter('component-3', 'fun_name');` work.
How to filter component content?