redirection_remove_existing

redirection_remove_existing

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_remove_existing') is found 1 times:

  • /models/monitor.php line 118
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    $after  = wp_parse_url( get_permalink( $post_id ), PHP_URL_PATH );
    $before = wp_parse_url( esc_url( $before ), PHP_URL_PATH );
     
    if ( apply_filters( 'redirection_permalink_changed', false, $before, $after ) ) {
        do_action( 'redirection_remove_existing', $after, $post_id );
     
        $data = array(
            'url'         => $before,
            'action_data' => array( 'url' => $after ),
            'match_type'  => 'url',
            'action_type' => 'url',

See this hook used in plugins: