WPSEO_MyYoast_Proxy::register_hooks()publicYoast 1.0

Registers the hooks when the user is on the right page.

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

Хуков нет.

Возвращает

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

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

$WPSEO_MyYoast_Proxy = new WPSEO_MyYoast_Proxy();
$WPSEO_MyYoast_Proxy->register_hooks();

Код WPSEO_MyYoast_Proxy::register_hooks() Yoast 22.4

public function register_hooks() {
	if ( ! $this->is_proxy_page() ) {
		return;
	}

	// Register the page for the proxy.
	add_action( 'admin_menu', [ $this, 'add_proxy_page' ] );
	add_action( 'admin_init', [ $this, 'handle_proxy_page' ] );
}