PluginProbe
Redirection / 5.1.2
Redirection v5.1.2
5.10.0 5.9.0 5.8.1 5.8.0 3.7.2 3.7.3 4.0 4.0.1 4.1 4.1.1 4.2 4.2.1 4.2.2 4.2.3 4.3 4.3.1 4.3.2 4.3.3 4.4 4.4.1 4.4.2 4.5 4.5.1 4.6.2 4.7.1 All 130 releases
redirection / actions / nothing.php

nothing.php in Redirection 5.1.2, at actions/nothing.php

20 lines 475 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * The 'do nothing' action. This really does nothing, and is used to short-circuit Redirection so that it doesn't trigger other redirects.
5 */
6 class Nothing_Action extends Red_Action {
7 /**
8 * Issue an action when nothing happens. This stops further processing.
9 *
10 * @return void
11 */
12 public function run() {
13 do_action( 'redirection_do_nothing', $this->get_target() );
14 }
15
16 public function name() {
17 return __( 'Do nothing (ignore)', 'redirection' );
18 }
19 }
20