Yoast\WP\SEO\Plans\User_Interface

Upgrade_Sidebar_Menu_Integration::do_redirectpublicYoast 1.0

Redirects to the yoast.com.

Метод класса: Upgrade_Sidebar_Menu_Integration{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$Upgrade_Sidebar_Menu_Integration = new Upgrade_Sidebar_Menu_Integration();
$Upgrade_Sidebar_Menu_Integration->do_redirect(): void;

Код Upgrade_Sidebar_Menu_Integration::do_redirect() Yoast 27.7

public function do_redirect(): void {

	if ( $this->current_page_helper->get_current_yoast_seo_page() !== self::PAGE ) {
		return;
	}
	$link = $this->shortlinker->build_shortlink( 'https://yoa.st/wordpress-menu-upgrade-premium' );
	if ( $this->woocommerce_conditional->is_met() ) {
		$link = $this->shortlinker->build_shortlink( 'https://yoa.st/wordpress-menu-upgrade-woocommerce' );
	}

	\wp_redirect( $link );//phpcs:ignore WordPress.Security.SafeRedirect.wp_redirect_wp_redirect -- Safe redirect is used here.
	exit();
}