How to make "Create Site" invisible to subsite users

Is there a way to remove the "Create New Site" link on a subsite, but still allow the "My Site" to show up. In other words, I want to allow my upgraded Prosite users to create additional sites on their primary account, but I want to be able to turn off this ability to create new sites at my discretion.

I am using a plugin called Menu Editor that allows me to edit the menu they see, and I can remove the My Sites menu item, but I only want to remove the "Create New Site" link.

Does that make sense?

Thanks, Joe.

  • Patrick

    Hey there @joejacobson

    I hope you had a great weekend!

    If I'm not mistaken, you're referring to removing the Create a Site link in the BuddyPress menu, is that correct?

    If so, here's a handy snippet to add to your theme's functions.php to remove that node (that's what WordPress calls 'em):

    add_action( 'admin_bar_menu', 'remove_create_site_link', 999 );
    function remove_create_site_link ( $wp_admin_bar ) {
    	$wp_admin_bar->remove_node( 'my-account-blogs-create' );

    For more on removing & adding toolbar nodes, see the codex pages here and here.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.