ActionScheduler_Logger::log_completed_action
Log action completion.
Method of the class: ActionScheduler_Logger{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ActionScheduler_Logger = new ActionScheduler_Logger(); $ActionScheduler_Logger->log_completed_action( $action_id, $action, $context );
- $action_id(int) (required)
- Action ID.
- $action(null|ActionScheduler_Action)
- Action.
Default:null - $context(string)
- Action execution context.
Default:''
ActionScheduler_Logger::log_completed_action() ActionScheduler Logger::log completed action code WC 10.8.1
public function log_completed_action( $action_id, $action = null, $context = '' ) {
if ( ! empty( $context ) ) {
/* translators: %s: context */
$message = sprintf( __( 'action complete via %s', 'woocommerce' ), $context );
} else {
$message = __( 'action complete', 'woocommerce' );
}
$this->log( $action_id, $message );
}