# redirection/5.1.3/actions/nothing.php

Redirection, version 5.1.3. 20 lines.

- Page: https://pluginprobe.com/plugins/redirection/5.1.3/code/actions/nothing.php
- Raw: https://pluginprobe.com/plugins/redirection/5.1.3/raw/actions/nothing.php
- Modified: 2021-07-17T06:46:36+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/redirection/5.1.3/code/actions/nothing.php#L10-L20`.

```php
<?php

/**
 * The 'do nothing' action. This really does nothing, and is used to short-circuit Redirection so that it doesn't trigger other redirects.
 */
class Nothing_Action extends Red_Action {
	/**
	 * Issue an action when nothing happens. This stops further processing.
	 *
	 * @return void
	 */
	public function run() {
		do_action( 'redirection_do_nothing', $this->get_target() );
	}

	public function name() {
		return __( 'Do nothing (ignore)', 'redirection' );
	}
}

```
