Remove image sizes in WordPress
/** * Function to Remove image size. * @param [string] $size */ function remove_image_size_by_size($size) { $dimension = explode('x', $size); global
WordPress is ? Create beautiful website, blog, or app
/** * Function to Remove image size. * @param [string] $size */ function remove_image_size_by_size($size) { $dimension = explode('x', $size); global
Delete posts based on search # Spaces needs replace with + (plus sign) # Eg: hello+world wp post delete $(wp
/** * Send push based on last active time (Intelligent Delivery). */ add_filter( 'onesignal_send_notification', function( $fields ) { $fields['delayed_option'] =
/** * Logged in for 1 year. */ add_filter( 'auth_cookie_expiration', function() { return YEAR_IN_SECONDS; });
To learn more about the issue: https://github.com/wp-media/wp-rocket/issues/1936 Fix: // Fires before an existing post is updated in the database. add_action(
add_filter('as3cf_get_attachment_url', function($url) { // Regex matches both http and https. $url = 'https://cdn.statically.io/img/' . preg_replace('#^https?://#', '', $url); return $url; });
Login as root then enter following commands. cd /etc/nginx-rc git clone https://github.com/satellitewp/rocket-nginx.git cd rocket-nginx cp rocket-nginx.ini.disabled rocket-nginx.ini php rocket-parser.php As
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
https://wordpress.stackexchange.com/questions/215041/how-to-create-a-permalink-structure-for-posts-in-a-specific-category https://kellenmace.com/edit-slug-button-missing-in-wordpress/
/** * Don't verify SSL certificates */ add_action( 'http_api_curl', function( $handle ) { curl_setopt( $handle, CURLOPT_SSL_VERIFYPEER, false ); curl_setopt( $handle,
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 ==
Sometimes we need to remove actions or filters added via Themes or Plugins. To remove a action or filter check
By default when a comment is deleted, WordPress does not delete the replies of that comment. With this function whenever
If you read the official nginx guide to serve WordPress as a sub directory then you will see that they
I use Yoast SEO on all of my WordPress setup. Here are some hacks that I use for it. Disable