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.


Top ↑

Parameters

$args

(array)(Optional)

Default value: array()


Top ↑

Return

(bool)


Top ↑

Source

File: wp-includes/class-wp-image-editor.php

	public static function test( $args = array() ) {
		return false;
	}

Top ↑

Changelog

Changelog
VersionDescription
3.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.