WPSEO_Meta_Columns::get_current_keyword_filter
Retrieves the keyword filter from the $_GET variable.
Метод класса: WPSEO_Meta_Columns{}
Хуков нет.
Возвращает
Строку|null. The sanitized seo keyword filter or null when the variable is not set in $_GET.
Использование
$WPSEO_Meta_Columns = new WPSEO_Meta_Columns(); $WPSEO_Meta_Columns->get_current_keyword_filter();
Код WPSEO_Meta_Columns::get_current_keyword_filter() WPSEO Meta Columns::get current keyword filter Yoast 26.3
public function get_current_keyword_filter() {
// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Reason: We are not processing form information.
if ( isset( $_GET['seo_kw_filter'] ) && is_string( $_GET['seo_kw_filter'] ) ) {
// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Reason: We are not processing form information.
return sanitize_text_field( wp_unslash( $_GET['seo_kw_filter'] ) );
}
return null;
}