Yoast\WP\SEO\Routes

Yoast_Head_REST_Field::__constructpublicYoast 1.0

Yoast_Head_REST_Field constructor.

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

Хуков нет.

Возвращает

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

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

$Yoast_Head_REST_Field = new Yoast_Head_REST_Field();
$Yoast_Head_REST_Field->__construct( $post_type_helper, $taxonomy_helper, $post_helper, $head_action );
$post_type_helper(Post_Type_Helper) (обязательный)
The post type helper.
$taxonomy_helper(Taxonomy_Helper) (обязательный)
The taxonomy helper.
$post_helper(Post_Helper) (обязательный)
The post helper.
$head_action(Indexable_Head_Action) (обязательный)
The head action.

Код Yoast_Head_REST_Field::__construct() Yoast 28.0

public function __construct(
	Post_Type_Helper $post_type_helper,
	Taxonomy_Helper $taxonomy_helper,
	Post_Helper $post_helper,
	Indexable_Head_Action $head_action
) {
	$this->post_type_helper = $post_type_helper;
	$this->taxonomy_helper  = $taxonomy_helper;
	$this->post_helper      = $post_helper;
	$this->head_action      = $head_action;
}