Skip to content

Instantly share code, notes, and snippets.

@danmaby
Created November 12, 2017 18:12
Show Gist options
  • Save danmaby/6506dfccef9100a6474e94fc46d21753 to your computer and use it in GitHub Desktop.
Save danmaby/6506dfccef9100a6474e94fc46d21753 to your computer and use it in GitHub Desktop.
prevent https:// for cron job when using Local by Flywheel
/**
* ============== REMOVE FROM LIVE ===================
prevent https:// for cron job
**/
add_filter( 'cron_request', function( $args ) {
$args['url'] = set_url_scheme( $args['url'], 'http' );
return $args;
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment