redirection_remove_existing, $after, $post_id

redirection_remove_existing, $after, $post_id

Appears in:
Hook Type: action

See hook in core

Displaying hooks found in version: redirection.5.9.0

do_action('redirection_remove_existing, $after, $post_id') is found 1 times:

  • /models/monitor.php line 213
    		$after = wp_parse_url( $permalink, PHP_URL_PATH );
    		$before = wp_parse_url( esc_url( $before ), PHP_URL_PATH );
    
    		if ( is_string( $before ) && is_string( $after ) && 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',