Merge pull request #9891 from capuderg/master

Added a filter for disabling automatic redirect to the setup wizard
This commit is contained in:
Mike Jolley 2015-12-23 12:32:51 +00:00
commit 9a700f8b48
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ class WC_Admin {
delete_transient( '_wc_activation_redirect' );
if ( ( ! empty( $_GET['page'] ) && in_array( $_GET['page'], array( 'wc-setup' ) ) ) || is_network_admin() || isset( $_GET['activate-multi'] ) || ! current_user_can( 'manage_woocommerce' ) ) {
if ( ( ! empty( $_GET['page'] ) && in_array( $_GET['page'], array( 'wc-setup' ) ) ) || is_network_admin() || isset( $_GET['activate-multi'] ) || ! current_user_can( 'manage_woocommerce' ) || apply_filters( 'woocommerce_prevent_automatic_wizard_redirect', false ) ) {
return;
}