芝麻web文件管理V1.00
编辑当前文件:/home/elegucvf/public_html/src/user-meta/user-interface/cleanup-integration.php
cleanup_service = $cleanup_service; } /** * Registers action hook. * * @return void */ public function register_hooks(): void { \add_filter( 'wpseo_misc_cleanup_tasks', [ $this, 'add_user_meta_cleanup_tasks' ] ); } /** * Adds cleanup tasks for the cleanup integration. * * @param Closure[] $tasks Array of tasks to be added. * * @return Closure[] An associative array of tasks to be added to the cleanup integration. */ 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 ); }, ] ); } }