Support » Plugin: Tag Pages » Switch from admin_init to init

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author BjornW



    My apologizes for not responding sooner. Somehow does not seem to send out notices of forum posts anymore?

    I prefer not to do this since this would mean my code would also run when it’s not needed. See versus

    A possible alternative solution for your problem might be to use is_plugin_active() (see: or check for the existence of a function name within my plugin. This would indicate if the plugin is active or not.

    I hope this helps,

    Hi Bjorn,

    In my use case I was supporting a user of one of my plugins that utilizes tags (on any WordPress object, not just Pages) but since your plugin only applies it’s logic when in the admin, my code wouldn’t work, it didn’t realize the taxonomy had been registered in the first place.

    It wasn’t so much a matter of checking for your plugin specifically, just that the taxonomy had been registered. When that only happens in the admin, it’s impossible for other plugins to utilize that registered taxonomy or know it exists.

    This would also come into play with themes that output Tags based on registered taxonomies. Since Tag Pages only “works” in the admin, the theme wouldn’t know to output any Tags because the taxonomy registration doesn’t exist outside the admin.

    I hope that helps explain the use case, thanks again for the plugin!

    Plugin Author BjornW


    Hi Jonathan,

    Thanks for your quick reply & explanation. I think I understand your use case.

    I need to do some pondering and testing to see what the implications would be of such a change, but if this would expand the plugin’s use without any significant issues I’ll implement it.

    Sounds good!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Switch from admin_init to init’ is closed to new replies.