Automator_DB_Handler_Actions::get_error_message( $recipe_log_id )


Parameters Parameters

$recipe_log_id

(Required)


Top ↑

Return Return

(array|object|void|null)


Source Source

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

	public function get_error_message( $recipe_log_id ) {
		global $wpdb;
		$tbl = Automator()->db->tables->action;

		return $wpdb->get_row( $wpdb->prepare( "SELECT error_message, completed FROM {$wpdb->prefix}{$tbl} WHERE error_message != '' AND automator_recipe_log_id =%d", $recipe_log_id ) ); //phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
	}