WP_Image_Editor::test() WordPress Method
The WP_Image_Editor::test() method is used to test whether a given image editor is supported on the current WordPress installation. This is useful for checking whether a particular image editor is available before using it.
WP_Image_Editor::test( array $args = array() ) #
Checks to see if current environment supports the editor chosen.
Description
Must be overridden in a subclass.
Parameters
- $args
(array)(Optional)
Default value: array()
Return
(bool)
Source
File: wp-includes/class-wp-image-editor.php
public static function test( $args = array() ) { return false; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.5.0 | Introduced. |