WordPress как на ладони
wordpress jino
фильтр не описан

wp_image_editors хук-фильтр . WP 3.5.0

Filters the list of image editing library classes.

Использование

add_filter( 'wp_image_editors', 'filter_function_name_9020', 10, 2 );
function filter_function_name_9020( $image_editors, 'WP_Image_Editor_GD' ){
	// filter...

	return $image_editors;
}
$image_editors(array)
List of available image editors. Defaults are 'WP_Image_Editor_Imagick', 'WP_Image_Editor_GD'.

Связи хука

Используется в: _wp_image_editor_choose()

Кусок кода с хуком

Фрагмент из: wp-includes/media.php WP 4.9
...
 * @return string|false Class name for the first editor that claims to support the request. False if no
 *                     editor claims to support the request.
 */
function _wp_image_editor_choose( $args = array() ) {
	require_once ABSPATH . WPINC . '/class-wp-image-editor.php';
	require_once ABSPATH . WPINC . '/class-wp-image-editor-gd.php';
	require_once ABSPATH . WPINC . '/class-wp-image-editor-imagick.php';
	/**
	 * Filters the list of image editing library classes.
	 *
	 * @since 3.5.0
	 *
	 * @param array $image_editors List of available image editors. Defaults are
	 *                             'WP_Image_Editor_Imagick', 'WP_Image_Editor_GD'.
	 */
	$implementations = apply_filters( 'wp_image_editors', array( 'WP_Image_Editor_Imagick', 'WP_Image_Editor_GD' ) );

	foreach ( $implementations as $implementation ) {
		if ( ! call_user_func( array( $implementation, 'test' ), $args ) )
			continue;

		if ( isset( $args['mime_type'] ) &&
			! call_user_func(
				array( $implementation, 'supports_mime_type' ),
				$args['mime_type'] ) ) {
			continue;
		}

		if ( isset( $args['methods'] ) &&
			 array_diff( $args['methods'], get_class_methods( $implementation ) ) ) {
			continue;
...