mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-05-05 12:32:23 +08:00
7 lines
245 B
Text
7 lines
245 B
Text
add_filter( 'woocommerce_show_admin_notice', 'wc_disable_wc_admin_install_notice', 10, 2 );
|
|
function wc_disable_wc_admin_install_notice( $notice_enabled, $notice ) {
|
|
if ( 'wc_admin' === $notice ) {
|
|
return false;
|
|
}
|
|
return $notice_enabled;
|
|
}
|