Support » Plugin: Posts 2 Posts » [Plugin: Posts 2 Posts] p2p_init vs wp_loaded

  • Resolved TCBarrett


    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?

Viewing 1 replies (of 1 total)
  • Plugin Author scribu


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

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Posts 2 Posts] p2p_init vs wp_loaded’ is closed to new replies.