redirection_url_target

redirection_url_target

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: redirection.5.4.2

do_action('redirection_url_target') is found 1 times:

  • /models/redirect/redirect.php line 599
    				$target_url = Red_Url_Query::add_to_target( $target_url, $original_url, $this->source_flags );
    			}
    
    			// Allow plugins a look
    			$target_url = apply_filters( 'redirection_url_target', $target_url, $url->get_url() );
    
    			// Do we have still have a target?
    			if ( ! $target_url ) {
    				// No, return early and move on to the next redirect. This could be a matched/unmatched target that has no value
    				return false;
    			}
    

See this hook used in plugins: