Documentation

wph/components/block_wp_cron_php/local_ips

Posted in: Getting Started (4) How To (15) Plugin Options Explained (37) Actions / Filters (32)      Rewrite (18)    Code Example (16)  

This functionality is available for PRO version.

Name: wph/components/block_wp_cron_php/local_ips
Type: Filter
Arguments:
(array) $local_ips

This filter can be used to add IP’s to ignore list for which the default wp-cron.php file can still be accessible when blocking the default.


    add_filter( 'wph/components/block_wp_cron_php/local_ips', '__wph_components_block_wp_cron_php_local_ips' );
    function __wph_components_block_wp_cron_php_local_ips( $local_ips )
        {
            
            $local_ips[]    =   '192.168.0.1';
            
            return $local_ips;
        } 

Important!
The above code should be placed within wp-content/mu-plugins/ directory.

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
Scroll to top