Class MLA (Media Library Assistant) Test provides basic run-time tests to ensure the plugin can run in the current WordPress envrionment.

package Media Library Assistant
since 0.1

 Methods

Initialization function, similar to __construct()

initialize() : void

since 0.60

Test that your WordPress version is at least that of the $min_version

min_WordPress_version(string $min_version) : string

since 0.1

Parameters

$min_version

string

representing the minimum required version of WordPress, e.g. '3.5.0'

Returns

string'' if pass else error message

Test that your PHP version is at least that of the $min_php_version

min_php_version(string $min_version) : string

since 0.1

Parameters

$min_version

string

representing the minimum required version of PHP, e.g. '5.3.2'

Returns

string'' if pass else error message

 Properties

 

True if WordPress version is 3.5.x

$wp_3dot5 : boolean

since 2.14
 

True if WordPress version is 4.3 or newer

$wp_4dot3_plus : boolean

since 2.13