redirection_create_redirect

redirection_create_redirect

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: redirection.5.4.2

apply_filters('redirection_create_redirect') is found 1 times:

  • /models/redirect/redirect.php line 495
    		if ( ! isset( $details['position'] ) || $details['position'] === 0 ) {
    			$data['position'] = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM {$wpdb->prefix}redirection_items WHERE group_id=%d", $data['group_id'] ) );
    		}
    
    		$data = apply_filters( 'redirection_create_redirect', $data );
    
    		if ( ! empty( $data['match_data'] ) ) {
    			$data['match_data'] = wp_json_encode( $data['match_data'], JSON_UNESCAPED_SLASHES );
    		}
    
    		// Create