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.5.2

do_action('redirection_url_target') is found 1 times:

  • /models/redirect/redirect.php line 602
    598
    599
    600
    601
    602
    603
    604
    605
    606
    607
    608
        $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: