woocommerce_prevent_admin_access

woocommerce_prevent_admin_access

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_prevent_admin_access') is found 1 times:

  • /includes/admin/class-wc-admin.php line 183
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
                $prevent_access = true;
            }
        }
     
        if ( apply_filters( 'woocommerce_prevent_admin_access', $prevent_access ) ) {
            wp_safe_redirect( wc_get_page_permalink( 'myaccount' ) );
            exit;
        }
    }
     
    /**