WP_REST_Attachments_Controller::remove_client_side_media_processing_filters
Removes filters added for client-side media processing.
Method of the class: WP_REST_Attachments_Controller{}
No Hooks.
Returns
null. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->remove_client_side_media_processing_filters(): void;
Changelog
| Since 7.1.0 | Introduced. |
WP_REST_Attachments_Controller::remove_client_side_media_processing_filters() WP REST Attachments Controller::remove client side media processing filters code WP 7.1.4
private function remove_client_side_media_processing_filters(): void {
remove_filter( 'intermediate_image_sizes_advanced', '__return_empty_array', 100 );
remove_filter( 'fallback_intermediate_image_sizes', '__return_empty_array', 100 );
remove_filter( 'wp_image_maybe_exif_rotate', '__return_false', 100 );
remove_filter( 'image_editor_output_format', '__return_empty_array', 100 );
remove_filter( 'big_image_size_threshold', '__return_false', 100 );
}