redirection_first

redirection_first

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

See hook in core

Displaying hooks found in version: redirection.5.5.2

do_action('redirection_first') is found 1 times:

  • /modules/wordpress.php line 331
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    $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 ) {