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 ); });

Things to do after installing RunCloud

Some few things I do after connecting a server to runcloud. MySQL Create a file /etc/mysql/conf.d/custom_config.cnf with the following contents: [mysqld] # Disable binary log skip-log-bin # Set default MySQL character set and collation # Source: https://coderwall.com/p/xdrjxg/proper-mysql-character-set-and-collation-setup character-set-server = utf8mb4 …

Read moreThings to do after installing RunCloud

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