Yoast\WP\SEO\Task_List\Domain\Tasks
Post_Type_Task_Interface{}└─ Task_Interface
Represents a post type task. Post type tasks are tasks that span throughout multiple post types. A post type task is relevant for multiple post types and it will be represented by separate tasks in the frontend, one per post type.
Хуков нет.
Использование
$Post_Type_Task_Interface = new Post_Type_Task_Interface(); // use class methods
Методы
- public get_post_type()
- public set_post_type( string $post_type )
Код Post_Type_Task_Interface{} Post Type Task Interface{} Yoast 27.7
interface Post_Type_Task_Interface extends Task_Interface {
/**
* Returns the post type associated with the task.
*
* @return string
*/
public function get_post_type(): string;
/**
* Sets the post type associated with the task.
*
* @param string $post_type The post type.
*
* @return void
*/
public function set_post_type( string $post_type ): void;
}