woocommerce_prevent_admin_access

woocommerce_prevent_admin_access

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_prevent_admin_access') is found 1 times:

  • /includes/admin/class-wc-admin.php line 183
    				$prevent_access = true;
    			}
    		}
    
    		if ( apply_filters( 'woocommerce_prevent_admin_access', $prevent_access ) ) {
    			wp_safe_redirect( wc_get_page_permalink( 'myaccount' ) );
    			exit;
    		}
    	}
    
    	/**