Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_image_editors

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
4095      require_once ABSPATH . WPINC . '/class-wp-image-editor-imagick.php';
4096      /**
4097       * Filters the list of image editing library classes.
4098       *
4099       * @since 3.5.0
4100       *
4101       * @param string[] $image_editors Array of available image editor class names. Defaults are
4102       *                                'WP_Image_Editor_Imagick', 'WP_Image_Editor_GD'.
4103       */
4104      $implementations = apply_filters( 'wp_image_editors', array( 'WP_Image_Editor_Imagick', 'WP_Image_Editor_GD' ) );
4105      $supports_input  = false;
4106
4107      foreach ( $implementations as $implementation ) {
4108           if ( ! call_user_func( array( $implementation, 'test' ), $args ) ) {
4109                continue;
4110           }
4111
4112           // Implementation should support the passed mime type.
4113           if ( isset( $args['mime_type'] ) &&