Yoast\WP\SEO\Helpers
Current_Page_Helper::get_current_yoast_seo_page()
Returns the current Yoast SEO page. (E.g. the page query variable in the URL).
Метод класса: Current_Page_Helper{}
Хуков нет.
Возвращает
Строку
. The current Yoast SEO page.
Использование
$Current_Page_Helper = new Current_Page_Helper(); $Current_Page_Helper->get_current_yoast_seo_page();
Код Current_Page_Helper::get_current_yoast_seo_page() Current Page Helper::get current yoast seo page Yoast 22.4
public function get_current_yoast_seo_page() { // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Reason: We are not processing form information. if ( isset( $_GET['page'] ) && \is_string( $_GET['page'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Reason: We are not processing form information. return \sanitize_text_field( \wp_unslash( $_GET['page'] ) ); } return ''; }