redirection_first

redirection_first

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: redirection.5.4.2

do_action('redirection_first') is found 1 times:

  • /modules/wordpress.php line 321
    		$request = new Red_Url_Request( Redirection_Request::get_request_url() );
    
    		// Make sure we don't try and redirect something essential
    		if ( $request->is_valid() && ! $request->is_protected_url() ) {
    			do_action( 'redirection_first', $request->get_decoded_url(), $this );
    
    			// Get all redirects that match the URL
    			$redirects = Red_Item::get_for_url( $request->get_decoded_url() );
    
    			// Redirects will be ordered by position. Run through the list until one fires
    			foreach ( (array) $redirects as $item ) {