Yoast\WP\SEO\User_Meta\Application
Cleanup_Service::cleanup_selected_empty_usermeta()
Deletes selected empty usermeta.
Метод класса: Cleanup_Service{}
Хуков нет.
Возвращает
int|true|false
. The number of rows that was deleted or false if the query failed.
Использование
$Cleanup_Service = new Cleanup_Service(); $Cleanup_Service->cleanup_selected_empty_usermeta( $limit );
- $limit(int) (обязательный)
- The limit we'll apply to the cleanups.
Код Cleanup_Service::cleanup_selected_empty_usermeta() Cleanup Service::cleanup selected empty usermeta Yoast 25.0
public function cleanup_selected_empty_usermeta( int $limit ) { $meta_to_check = $this->get_meta_to_check(); return $this->cleanup_repository->delete_empty_usermeta_query( $meta_to_check, $limit ); }