ActionScheduler_WPCommentCleaner::delete_all_action_comments()public staticWC 1.0

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() WC 9.0.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 ) );
	delete_option( self::$has_logs_option_key );
}