WordPress at Your Fingertips
function is not described

ActionScheduler_Logger::log_failed_fetch_action() public WC 1.0

{} It's a method of the class: ActionScheduler_Logger{}

No Hooks.

Return

ActionScheduler_LogEntry[].

Usage

$ActionScheduler_Logger = new ActionScheduler_Logger();
$ActionScheduler_Logger->log_failed_fetch_action( $action_id, $exception );
$action_id(string) (required)
-
$exception(Exception|NULL)
The exception which occured when fetching the action. NULL by default for backward compatibility.
Default: NULL

Code of ActionScheduler_Logger::log_failed_fetch_action() WC 6.1.1

public function log_failed_fetch_action( $action_id, Exception $exception = NULL ) {

	if ( ! is_null( $exception ) ) {
		/* translators: %s: exception message */
		$log_message = sprintf( __( 'There was a failure fetching this action: %s', 'woocommerce' ), $exception->getMessage() );
	} else {
		$log_message = __( 'There was a failure fetching this action', 'woocommerce' );
	}

	$this->log( $action_id, $log_message );
}