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