ActionScheduler_Logger::log_started_actionpublicWC 1.0

Log action start.

Метод класса: ActionScheduler_Logger{}

Хуков нет.

Возвращает

null. Ничего (null).

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

$ActionScheduler_Logger = new ActionScheduler_Logger();
$ActionScheduler_Logger->log_started_action( $action_id, $context );
$action_id(int) (обязательный)
Action ID.
$context(строка)
Action execution context.
По умолчанию: ''

Код ActionScheduler_Logger::log_started_action() WC 10.4.3

public function log_started_action( $action_id, $context = '' ) {
	if ( ! empty( $context ) ) {
		/* translators: %s: context */
		$message = sprintf( __( 'action started via %s', 'woocommerce' ), $context );
	} else {
		$message = __( 'action started', 'woocommerce' );
	}
	$this->log( $action_id, $message );
}