redirection_permalink_changed

redirection_permalink_changed

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: redirection.5.4.2

apply_filters('redirection_permalink_changed') is found 1 times:

  • /models/monitor.php line 117
    	public function check_for_modified_slug( $post_id, $before ) {
    		$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',
    

See this hook used in plugins: