ActionScheduler_WPCommentCleaner::delete_all_action_comments()public staticWC 1.0

Delete all action comments from the WP Comments table.

Method of the class: ActionScheduler_WPCommentCleaner{}

No Hooks.

Return

null. Nothing.

Usage

$result = ActionScheduler_WPCommentCleaner::delete_all_action_comments();

ActionScheduler_WPCommentCleaner::delete_all_action_comments() code WC 7.3.0

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