Yoast\WP\SEO\Routes
Yoast_Head_REST_Field::__construct() public Yoast 1.0
Yoast_Head_REST_Field constructor.
{} Это метод класса: Yoast_Head_REST_Field{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$Yoast_Head_REST_Field = new Yoast_Head_REST_Field(); $Yoast_Head_REST_Field->__construct(;
- $post_type_helper(Post_Type_Helper) (обязательный)
- The post type helper.
- $taxonomy_helper(Taxonomy_Helper) (обязательный)
- The taxonomy helper.
- $head_action(Indexable_Head_Action) (обязательный)
- The head action.
Код Yoast_Head_REST_Field::__construct() Yoast Head REST Field:: construct Yoast 15.7
public function __construct(
Post_Type_Helper $post_type_helper,
Taxonomy_Helper $taxonomy_helper,
Indexable_Head_Action $head_action
) {
$this->post_type_helper = $post_type_helper;
$this->taxonomy_helper = $taxonomy_helper;
$this->head_action = $head_action;
}