Disable cURL SSL verification in WordPress

/** * Don’t verify SSL certificates */ add_action( ‘http_api_curl’, function( $handle ) { curl_setopt( $handle, CURLOPT_SSL_VERIFYPEER, false ); curl_setopt( $handle, CURLOPT_SSL_VERIFYHOST, false ); });

WP Rocket Hooks

after_rocket_clean_post action is fired when you clear cache of a post. add_action( ‘after_rocket_clean_post’, function( $post, $purge_urls, $lang ) { if ( $post->post_name == ‘foo’ ) { rocket_clean_files( ‘https://example.com/foo/’ ); } }, 10, 3 ); after_rocket_clean_domain action is fired when you …

Read moreWP Rocket Hooks

Useful Yoast Hacks

I use Yoast SEO on all of my wordpress setup. Here are some hacks that I use for it. Disable Yoast JSON-LD Completely add_filter( ‘wpseo_json_ld_output’, ‘__return_false’ ); Noindex paginated pages Since the version 7.0 Yoast SEO started paginated pages indexation …

Read moreUseful Yoast Hacks