wp_image_editors

wp_image_editors

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('wp_image_editors') is found 1 times:

  • /wp-includes/media.php line 4241
    4237
    4238
    4239
    4240
    4241
    4242
    4243
    4244
    4245
    4246
    4247
    *
     * @param string[] $image_editors Array of available image editor class names. 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' ) );
     
    $editors = wp_cache_get( 'wp_image_editor_choose', 'image_editor' );
     
    if ( ! is_array( $editors ) ) {
        $editors = array();
    }

See this hook used in plugins: