• Resolved onpc

    (@onpc)


    Hello,

    I would like to set the GA for one of my websites, but I cannot find it in the displayed list in the Network Admin…

    While regarding the code, here is what there is at the line 1805 of admin/settings.php :

    
    
    <?php foreach ( GADWP_Tools::get_sites( array( 'number' => apply_filters( 'gadwp_sites_limit', 100 ) ) ) as $blog ) : ?>
    
    

    Why is there a limitation of 100 websites ?
    OK, by default the limit for get_sites() is 100

    Can we solve this issue by giving the user the capacity to set this limit ?

    Thanks !

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter onpc

    (@onpc)

    UP !

    I have more than 100 websites on my WPMU : about 150.
    With the last update, all the settings of the last 50 websites where lost.

    Could you please update this line 1805 please by a limitation at 2000 for example ?

    If I do an override function, I won’t be sure to have the same code if you update this function general_settings_network()

    EDIT : the line 1597 needs also tu be updated

    • This reply was modified 6 years, 3 months ago by onpc.

    Hi there,

    That’s the default limit and can be increased by using the gadwp_sites_limit filter.

    Adding the following code to your functions.php file of your theme or Functionality Plugin should increase the site limit to 300.

    // define the gadwp_sites_limit callback 
    function filter_gadwp_sites_limit( $limit ) { 
        // make filter magic happen here... 
        return 300;
    }; 
             
    // add the filter 
    add_filter( 'gadwp_sites_limit', 'filter_gadwp_sites_limit', 10, 1 ); 

    https://www.ads-software.com/support/topic/limit-of-100-sites-shown-in-network-view/

    Cheers,

    -Jay

    Thread Starter onpc

    (@onpc)

    Thank you for your support @jaygidwitz !

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WPMU : limitation of 100 websites ?’ is closed to new replies.