WordPress.org

Ready to get started?Download WordPress

Forums

Feature Request: Action hooks for Multisite (6 posts)

  1. jboveda
    Member
    Posted 1 year ago #

    I'm sure a lot of folks use multisite installs with WordPress. The fact that it can do this is outstanding. WordPress' actions and filters are also amazing (if woefully documented), allowing you to alter your code using your functions.php to get wordpress to essentially do your bidding.

    One thing that's missing, though, is hooks for multisite actions. For example, there's no hook before/after registering a new site. This place would be perfect for ensuring homogeneity among new site installs for certain features, templates, etc.

    I'm sure everyone would find this very useful. Any reason why this isn't/can't be implemented?

  2. For example, there's no hook before/after registering a new site.

    Like what?

    There are some already: http://www.intechgrity.com/automatic-primary-site-in-wordpress-multisite-set-blog-creating-users-primary-creation

  3. jboveda
    Member
    Posted 1 year ago #

    So you're saying in order to hook into when a new blog is created, one needs to hook into the 'add_user_to_blog' action? That can't be right. What about when an actual user is added to the blog? Seems messy.

    It would be nice to at least have the Multisite-specific hooks detailed in the Action reference.

    Otherwise I think my statement stands. Thoughts?

  4. You mean like: http://codex.wordpress.org/WPMU_Functions

    (The example I gave was, if you'd read the post, how to add a new user to a specific site when she registers.)

  5. jboveda
    Member
    Posted 1 year ago #

    Thanks for the quick replies, Ipstenu!

    I did read the post which talked about one hook. In the Action reference I linked to above, there is also an external link to a list (no descriptions) of the action hooks in WordPress including the MU ones.

    The post you linked to is obsolete (says so in big bold letters), but yes a list like that is ideal. I hope this thread with your replies will be a good reference for those looking for WPMU action hooks.

  6. The post was an example of what's available, which I'd hoped would lead you to seeing what's out there.

    And no, WPMU Function isn't obsolete :)

    Please take caution when following its contents, as many things may have changed.

    Bolded the key word.

    I promise you, most of that is still accurate, if a little out of date. It's on the to-do list to update.

Topic Closed

This topic has been closed to new replies.

About this Topic