Created
November 29, 2024 16:16
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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