wpseo_task_list_tasks
Filter: wpseo_task_list_tasks Allows adding more tasks to the task list.
Использование
add_filter( 'wpseo_task_list_tasks', 'wp_kama_wpseo_task_list_tasks_filter' ); /** * Function for `wpseo_task_list_tasks` filter-hook. * * @param array> $tasks The tasks for the task list. * * @return array
- $tasks(array<string,)
- array<string, Task_Interface>> $tasks The tasks for the task list.
Где вызывается хук
wpseo_task_list_tasksyoast/src/task-list/infrastructure/tasks-collectors/tasks-collector.php 117$tasks = \apply_filters( 'wpseo_task_list_tasks', $this->tasks );Где используется хук в Yoast SEO
yoast/src/task-list/infrastructure/register-post-type-tasks-integration.php 74\add_filter( 'wpseo_task_list_tasks', [ $this, 'register_post_type_tasks' ] );