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
2893
2894      /**
2895       * Filters the list of image editing library classes.
2896       *
2897       * @since 3.5.0
2898       *
2899       * @param array $image_editors List of available image editors. Defaults are
2900       *                             'WP_Image_Editor_Imagick', 'WP_Image_Editor_GD'.
2901       */
2902      $implementations = apply_filters( 'wp_image_editors', array( 'WP_Image_Editor_Imagick', 'WP_Image_Editor_GD' ) );
2903
2904      foreach ( $implementations as $implementation ) {
2905           if ( ! call_user_func( array( $implementation, 'test' ), $args ) )
2906                continue;
2907
2908           if ( isset( $args['mime_type'] ) &&
2909                ! call_user_func(
2910                     array( $implementation, 'supports_mime_type' ),
2911                     $args['mime_type'] ) ) {