Created
November 12, 2017 18:12
-
-
Save danmaby/6506dfccef9100a6474e94fc46d21753 to your computer and use it in GitHub Desktop.
prevent https:// for cron job when using Local by Flywheel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* ============== 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