Forum Replies Created

Viewing 16 replies (of 16 total)
  • Thread Starter wuh

    (@wuh)

    Well, I know that I could do it for example by specifying the page_id where the tag is inserted, but I don’t want to hard code it like this.

    widgets_init should make a call that checks whether the page content contains the relevant tag (i.e. [call_my_plugin]). However, it is my understanding that the widgets_init action always occurs before the_content filter, so I can’t do that. Does that make more sense? Maybe I can remove the widget later?

Viewing 16 replies (of 16 total)