Posted in: Getting Started (4) Plugin Options Explained (35) Actions / Filters (30) How To (14)      Rewrite (18)    Code Example (15)  

This functionality is available for PRO version.

Name: wph/components/block_wp_cron_php/local_ips
Type: Filter
(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[]    =   '';
            return $local_ips;

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