wpseo_should_redirect_after_install

wpseo_should_redirect_after_install

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-seo.27.3

apply_filters('wpseo_should_redirect_after_install') is found 1 times:

  • /src/integrations/admin/installation-success-integration.php line 109
    		 * Filter: 'wpseo_should_redirect_after_install' - Allows skipping the redirect to the installation success page.
    		 *
    		 * @param bool $should_redirect Whether to redirect. Default true.
    		 */
    		if ( ! \apply_filters( 'wpseo_should_redirect_after_install', true ) ) {
    			return;
    		}
    
    		\wp_safe_redirect( \admin_url( 'admin.php?page=wpseo_installation_successful_free' ), 302, 'Yoast SEO' );
    		$this->terminate_execution();
    	}