Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SOLVED How to hook filter to component content?
#1
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?
Reply


Messages In This Thread
How to hook filter to component content? - by tariel36 - 2020-08-26, 18:32:46



Users browsing this thread: 1 Guest(s)