• Resolved Pak Kriss

    (@pakkriss)


    Hi Pierre, great work your plugins. Thanks!

    Regarding installation of the plugins we have an environment with over 100 websites leveraging the ManageWP platform.

    E.g. so it’s simple for us to install & activate plugins across all websites with a “single” process.

    Regarding configuration or certain actions for plugins we leverage https://managewp.com/guide/manage/code-snippets to run plugin updates or configuration changes across all pages with a “single” process.

    Example for Rocket WP:

    <?php 
     
    // Load WordPress environment.
    require 'wp-load.php';
    
    // Load WP Rocket environment.
    require 'wp-content/plugins/wp-rocket/wp-rocket.php';
    require 'wp-content/plugins/wp-rocket/inc/functions/htaccess.php';
    
    // Regenerate the htaccess file only on Apache.
    if ( function_exists( 'flush_rocket_htaccess' ) ) {
            flush_rocket_htaccess();
            echo 'The .htaccess file was regenerated.';
    }

    Regarding your plugins it’s easy for us to install and activate them, but we do not know or we need to know a similar code snippet to do the following actions:

    /wp-admin/admin.php?page=apcm-settings

    Object cache – Activate
    Garbage collector – Activate
    Analytics – Activate
    Admin notices -Activate

    /wp-admin/admin.php?page=opcm-settings

    Analytics – Activate
    Metrics – Activate
    Site invalidation – Never or other options
    Site warm-up – Deactivate
    Admin notices -Activate

    Could you provide a code snipped similar to above example so we can configure your plugins?

    Please let me know.

    Best,

    Pak Kriss

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Plugin Configuration via Code Snippets’ is closed to new replies.