Skip to content

Instantly share code, notes, and snippets.

@barryhughes
Created November 29, 2024 16:16
Show Gist options
  • Save barryhughes/42ef60fdfc671f283696a27136fd3c6c to your computer and use it in GitHub Desktop.
Save barryhughes/42ef60fdfc671f283696a27136fd3c6c to your computer and use it in GitHub Desktop.
Temporary fix for WooCommerce 9.4.2 and bug #53057 (https://github.com/woocommerce/woocommerce/issues/53057)
<?php
/**
* Temporary fix for https://github.com/woocommerce/woocommerce/issues/53057.
*/
add_action(
'after_plugin_row',
function () {
global $wp_list_table;
if ( ! isset( $wp_list_table ) || ! is_a( $wp_list_table, 'WP_List_Table' ) ) {
remove_action(
'after_plugin_row',
array(
'Automattic\WooCommerce\Packages',
'display_notice_for_merged_plugins'
)
);
}
},
5
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment