public function filter_editors($editors) { if (($position = array_search('WP_Image_Editor_Imagick', $editors)) !== false) { unset($editors[$position]); } array_unshift($editors, 'S3_Uploads_Image_Editor_Imagick'); return $editors; }