Automator_DB_Handler_Recipes::get_scheduled_actions_count( mixed $recipe_log_id, mixed $args )

get_scheduled_actions_count


Parameters Parameters

$recipe_log_id

(mixed) (Required)

$args

(mixed) (Required)


Top ↑

Return Return

(void)


Source Source

File: src/core/lib/utilities/db/class-automator-db-handler-recipes.php

	public function get_scheduled_actions_count( $recipe_log_id, $args ) {

		global $wpdb;

		$tbl = Automator()->db->tables->action;

		$results = $wpdb->get_var( "SELECT COUNT(*) FROM {$wpdb->prefix}{$tbl} WHERE completed NOT IN (1,2,7,9) AND automator_recipe_log_id = $recipe_log_id" ); //phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared

		return apply_filters( 'automator_has_scheduled_actions', absint( $results ), $recipe_log_id, $args );
	}