Posts 2 Posts
[resolved] p2p_init vs wp_loaded (2 posts)

  1. TCBarrett
    Posted 3 years ago #

    I am building a plugin that registers user definable custom post types (defined as part of the plugin setup). I'd like to make sure I am controlling the correct order in which my post types, taxonomies and p2p relations are set up.

    So I've been using wp_loaded to register p2p connections. I've not had a chance to check your code, but I'm guessing that you hook into init to invoke p2p_init?

    Do you foresee any problems with me using wp_loaded?


  2. scribu
    Plugin Author

    Posted 3 years ago #

    As long as you keep the function_exists() check, 'wp_loaded' should be fine.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Posts 2 Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.