ActionScheduler_Logger::log_started_action
Log action start.
Method of the class: ActionScheduler_Logger{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ActionScheduler_Logger = new ActionScheduler_Logger(); $ActionScheduler_Logger->log_started_action( $action_id, $context );
- $action_id(int) (required)
- Action ID.
- $context(string)
- Action execution context.
Default: ''
ActionScheduler_Logger::log_started_action() ActionScheduler Logger::log started action code 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 );
}