Tweaking WP Rocket

Edit function get_subscribed_events() on /wp-rocket/inc/classes/subscriber/admin/Settings/class-page-subscriber.php //[ 'add_imagify_page', 9 ], Edit function render_page() on  /wp-rocket/inc/classes/admin/settings/class-page.php /*$this->heartbeat_section(); $this->addons_section(); $this->cloudflare_section(); $this->sucuri_section();*/ Add to

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,

WP Rocket Hooks

after_rocket_clean_post action is fired after clear cache of a post. add_action( 'after_rocket_clean_post', function( $post ) { if ( $post->post_name ==

Useful Linux commands

Run command without output command > /dev/null 2>&1 Run command in background without output nohup command > /dev/null 2>&1 &

Cloudflare optimal settings

If you Google cloudflare settings for wordpress you will find a lot people giving tutorials how to speed up sites

Useful Yoast Hacks

I use Yoast SEO on all of my WordPress setup. Here are some hacks that I use for it. Disable