# image-optimization/trunk/vendor/woocommerce/action-scheduler/classes/actions/ActionScheduler_NullAction.php

Image Optimizer – Compress Images and Convert to WebP or AVIF, version trunk. 26 lines.

- Page: https://pluginprobe.com/plugins/image-optimization/trunk/code/vendor/woocommerce/action-scheduler/classes/actions/ActionScheduler_NullAction.php
- Raw: https://pluginprobe.com/plugins/image-optimization/trunk/raw/vendor/woocommerce/action-scheduler/classes/actions/ActionScheduler_NullAction.php
- Modified: 2024-11-20T09:34:34+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/image-optimization/trunk/code/vendor/woocommerce/action-scheduler/classes/actions/ActionScheduler_NullAction.php#L10-L20`.

```php
<?php

/**
 * Class ActionScheduler_NullAction
 */
class ActionScheduler_NullAction extends ActionScheduler_Action {

	/**
	 * Construct.
	 *
	 * @param string                        $hook Action hook.
	 * @param mixed[]                       $args Action arguments.
	 * @param null|ActionScheduler_Schedule $schedule Action schedule.
	 */
	public function __construct( $hook = '', array $args = array(), ?ActionScheduler_Schedule $schedule = null ) {
		$this->set_schedule( new ActionScheduler_NullSchedule() );
	}

	/**
	 * Execute action.
	 */
	public function execute() {
		// don't execute.
	}
}

```
