PHP code example of soderlind / dss-cron
1. Go to this page and download the library: Download soderlind/dss-cron library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
soderlind / dss-cron example snippets
define( 'DISABLE_WP_CRON', true );
add_filter( 'dss_cron_number_of_sites', function( $sites_per_request ) {
return 200;
});
add_filter( 'dss_cron_transient_expiration', function( $expiration ) {
return HOUR_IN_SECONDS;
});