Yoast\WP\SEO\User_Meta\User_Interface
Cleanup_Integration::add_user_meta_cleanup_tasks()
Adds cleanup tasks for the cleanup integration.
Метод класса: Cleanup_Integration{}
Хуков нет.
Возвращает
Closure[]
. An associative array of tasks to be added to the cleanup integration.
Использование
$Cleanup_Integration = new Cleanup_Integration(); $Cleanup_Integration->add_user_meta_cleanup_tasks( $tasks );
- $tasks(Closure[]) (обязательный)
- Array of tasks to be added.
Код Cleanup_Integration::add_user_meta_cleanup_tasks() Cleanup Integration::add user meta cleanup tasks Yoast 25.1
public function add_user_meta_cleanup_tasks( $tasks ) { return \array_merge( $tasks, [ 'clean_selected_empty_usermeta' => function ( $limit ) { return $this->cleanup_service->cleanup_selected_empty_usermeta( $limit ); }, ] ); }