Merge pull request #9891 from capuderg/master
Added a filter for disabling automatic redirect to the setup wizard
This commit is contained in:
commit
9a700f8b48
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue