WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. TCBarrett
    Member
    Posted 1 year 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?

    http://wordpress.org/extend/plugins/posts-to-posts/

  2. scribu
    Member
    Plugin Author

    Posted 1 year 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

About this Topic

Tags

No tags yet.