Merge pull request #19599 from RamseyInHouse/suppressHelperConnectNotice
Add filter to suppress admin WordPress.com connection message.
This commit is contained in:
commit
4d04038372
|
@ -1318,6 +1318,10 @@ class WC_Helper {
|
|||
* @param string $screen_id Current screen ID.
|
||||
*/
|
||||
private static function _prompt_helper_connect( $screen_id ) {
|
||||
if ( apply_filters( 'woocommerce_helper_suppress_connect_notice', false ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$screens = wc_get_screen_ids();
|
||||
$screens[] = 'plugins';
|
||||
|
||||
|
|
Loading…
Reference in New Issue