No of Sites Per Level On Prosite

I will like to know if it is possible to offer two or more sites per Pro Site Level.
For example on Level one, I want a customer should be able to create two sites.
On level two a customer should be able to create three sites.

  • Vaughan
    • Support/SLS MockingJay

    Hi @felix,

    This isn't currently possible out of the box. Pro-sites is on a site basis and not a user basis, as many sites can have multiple admins, the limit would be based for each user.

    Something like the following you could use to limit blogs per user.

    add_filter('wpmu_validate_blog_signup','set_blog_creation_limit');
    
    function set_blog_creation_limit($result) {
    
        $blogs = get_blogs_of_user($result['user']->ID);
    
        if (count($blogs) > 2 )
            $result['errors']->add('blogname', __('You have already registered the maximum amount of blogs!'));
    
        return $result;
    }

    But this wouldn't work with pro-site levels as per my info above.

    Hope this helps

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.