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
3820      require_once ABSPATH . WPINC . '/class-wp-image-editor-imagick.php';
3821      /**
3822       * Filters the list of image editing library classes.
3823       *
3824       * @since 3.5.0
3825       *
3826       * @param string[] $image_editors Array of available image editor class names. Defaults are
3827       *                                'WP_Image_Editor_Imagick', 'WP_Image_Editor_GD'.
3828       */
3829      $implementations = apply_filters( 'wp_image_editors', array( 'WP_Image_Editor_Imagick', 'WP_Image_Editor_GD' ) );
3830
3831      foreach ( $implementations as $implementation ) {
3832           if ( ! call_user_func( array( $implementation, 'test' ), $args ) ) {
3833                continue;
3834           }
3835
3836           if ( isset( $args['mime_type'] ) &&
3837                ! call_user_func(
3838                     array( $implementation, 'supports_mime_type' ),