wp_image_editor_supports

Tests whether there is an editor that supports a given mime type or methods.

Description

wp_image_editor_supports( (array) $args = array() ); 

Parameters (1)

0. $args — Optional. (array) => array()
Array of arguments to retrieve the image editor supports. Default empty array.

Usage

  1. if ( !function_exists( 'wp_image_editor_supports' ) ) { 
  2. require_once ABSPATH . WPINC . '/media.php'; 
  3.  
  4. // Optional. Array of arguments to retrieve the image editor supports. 
  5. // Default empty array. 
  6. $args = array(); 
  7.  
  8. // NOTICE! Understand what this does before running. 
  9. $result = wp_image_editor_supports($args); 
  10.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/media.php  
  1. function wp_image_editor_supports( $args = array() ) { 
  2. return (bool) _wp_image_editor_choose( $args );