WPSEO_Abstract_Post_Filter::get_filter_url()protectedYoast 1.0

Returns an url to edit.php with post_type and this filter as the query arguments.

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

Хуков нет.

Возвращает

Строку. The url to activate this filter.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_filter_url();

Код WPSEO_Abstract_Post_Filter::get_filter_url() Yoast 22.4

protected function get_filter_url() {
	$query_args = [
		self::FILTER_QUERY_ARG => $this->get_query_val(),
		'post_type'            => $this->get_current_post_type(),
	];

	return add_query_arg( $query_args, 'edit.php' );
}