ActionScheduler_WPCommentCleaner::delete_all_action_comments()public staticWC 1.0

Delete all action comments from the WP Comments table.

{} Это метод класса: ActionScheduler_WPCommentCleaner{}

Хуков нет.

Возвращает

null. Ничего.

Использование

$result = ActionScheduler_WPCommentCleaner::delete_all_action_comments();

Код ActionScheduler_WPCommentCleaner::delete_all_action_comments() WC 6.9.4

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 );
}