-
core
WordPress 5.2.2, 5.2.3
(You shouldn’t use 5.2.2) https://www.wp-plugin-api.com/version/wordpress-5-5-2/ https://www.wp-plugin-api.com/version/wordpress-5-5-3/ -
pre_site_transient_update_core
Disable WordPress update notification
// hide update notifications function remove_core_updates(){ global $wp_version;return(object) array(‘last_checked’=> time(),’version_checked’=> $wp_version,); } add_filter(‘pre_site_transient_update_core’,’remove_core_updates’); //hide updates for WordPress itself add_filter(‘pre_site_transient_update_plugins’,’remove_core_updates’); //hide updates for all plugins add_filter(‘pre_site_transient_update_themes’,’remove_core_updates’); //hide updates for all themes Reference: https://thomas.vanhoutte.be/miniblog/wordpress-hide-update/ -
woocommerce_quantity_input_args
Making the Quantity Field a Dropdown in WooCommerce
https://aceplugins.com/making-the-quantity-field-a-dropdown-in-woocommerce/ -
Allow shortcodes in widgets
add_filter( ‘widget_text’, ‘do_shortcode’ ); -
core
WordPress 5.5.1
https://www.wp-plugin-api.com/version/wordpress-5-5-1/ -
core
WordPress 5.5
https://www.wp-plugin-api.com/version/wordpress-5-5/ https://wordpress.org/news/2020/08/eckstine/ -
core
WordPress 5.4.2
https://www.wp-plugin-api.com/version/wordpress-5-4-2/ https://wordpress.org/news/2020/06/wordpress-5-4-2-security-and-maintenance-release/ -
woocommerce_get_image_size_gallery_thumbnail
How to override an image size in WooCommerce
Product single <?php add_filter( ‘woocommerce_get_image_size_single’, function( $size ) { return array( ‘width’ => 400, ‘height’ => ”, ‘crop’ => 0, ); } ); add_filter( ‘woocommerce_get_image_size_single’, function( $size ) { return array( ‘width’ => 500, ‘height’ => 500, ‘crop’ => 1, ); } ); Thumbnail (for shop and category pages) add_filter( ‘woocommerce_get_image_size_thumbnail’, function( $size ) { return array( ‘width’ => 500, ‘height’ => 500, ‘crop’ => 1, ); } ); Gallery add_filter( ‘woocommerce_get_image_size_gallery_thumbnail’, function( $size ) { return array( ‘width’ => 400, ‘height’ => 400, ‘crop’ => 1, ); } ); -
wp_mail_failed
Debugging WP Mail
// define the wp_mail_failed callback function action_wp_mail_failed($wp_error) { return error_log(print_r($wp_error, true)); } // add the action add_action(‘wp_mail_failed’, ‘action_wp_mail_failed’, 10, 1); I personally use slack’s webhooks and other methods for this notification. Reference: https://www.codeforest.net/debugging-wp-mail-like-a-boss-debugger -
admin_enqueue_scripts
Add styles to wp-admin
use the admin_head hook add_action(‘admin_head’, ‘my_admin_style’); function my_custom_fonts() { ?> <style> tr[data-gateway_id^=”stripe_”] { display: none; } </style> <?php } or, you can use the admin_enqueue_scripts hook add_action(‘admin_enqueue_scripts’, ‘my_admin_stylesheet’); function my_admin_stylesheet() { // enqueue your stylesheet wp_enqueue_script( ‘my_custom_script’, plugin_dir_url( __FILE__ ) . ‘myscript.js’, array(), ‘1.0’ ); }