ActionScheduler_WPCommentCleaner::delete_all_action_comments
Delete all action comments from the WP Comments table.
Метод класса: ActionScheduler_WPCommentCleaner{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$result = ActionScheduler_WPCommentCleaner::delete_all_action_comments();
Код ActionScheduler_WPCommentCleaner::delete_all_action_comments() ActionScheduler WPCommentCleaner::delete all action comments WC 11.2.2
public static function delete_all_action_comments() {
global $wpdb;
$wpdb->delete(
$wpdb->comments,
array(
'comment_type' => ActionScheduler_wpCommentLogger::TYPE,
'comment_agent' => ActionScheduler_wpCommentLogger::AGENT,
)
);
update_option( self::$has_logs_option_key, 'no', true );
}