Merge pull request #19599 from RamseyInHouse/suppressHelperConnectNotice

Add filter to suppress admin WordPress.com connection message.
This commit is contained in:
Claudiu Lodromanean 2018-04-04 07:44:42 -07:00 committed by GitHub
commit 4d04038372
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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';