Yoast\WP\SEO\Dashboard\User_Interface\Setup
Setup_Flow_Interceptor::intercept_site_kit_setup_flow()
Checks if we should intercept the final page from the Site Kit flow.
Метод класса: Setup_Flow_Interceptor{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$Setup_Flow_Interceptor = new Setup_Flow_Interceptor(); $Setup_Flow_Interceptor->intercept_site_kit_setup_flow();
Код Setup_Flow_Interceptor::intercept_site_kit_setup_flow() Setup Flow Interceptor::intercept site kit setup flow Yoast 25.1
public function intercept_site_kit_setup_flow() { if ( \get_transient( Setup_Url_Interceptor::SITE_KIT_SETUP_TRANSIENT ) === '1' && $this->is_site_kit_setup_completed_page() ) { \delete_transient( Setup_Url_Interceptor::SITE_KIT_SETUP_TRANSIENT ); $this->redirect_helper->do_safe_redirect( \self_admin_url( 'admin.php?page=wpseo_dashboard&redirected_from_site_kit' ), 302, 'Yoast SEO' ); } }