diff --git a/plugins/wpe-headless/wpe-headless.php b/plugins/wpe-headless/wpe-headless.php index 62ab9a131..108f5c7df 100644 --- a/plugins/wpe-headless/wpe-headless.php +++ b/plugins/wpe-headless/wpe-headless.php @@ -50,19 +50,3 @@ if ( is_events_enabled() ) { require FAUSTWP_DIR . '/includes/events/callbacks.php'; } - -add_action( 'activated_plugin', 'activated_plugin', 10, 2 ); -/** - * Callback for WordPress 'activated_plugin' action. - * - * Redirect the user to FaustWP settings page on activation. - * - * @param string $plugin The plugin name. - * @param bool $network_wide True if a network plugin, false if else. - */ -function activated_plugin( $plugin, $network_wide ) { - if ( ! defined( 'WP_CLI' ) && ! $network_wide && FAUSTWP_PATH === $plugin ) { - wp_safe_redirect( esc_url_raw( admin_url( 'options-general.php?page=faustwp-settings&new_activation=1' ) ) ); - exit; - } -}