Description

This function retrieves the WordPress Manager plugin's version.

You must install the WordPress Manager cPanel plugin to access this API function.

Examples


https://hostname.example.com:2083/cpsess##########/execute/WordPressInstanceManager/get_api_version

$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
 
// Retrieves the WordPress Manager plugin's version.
 $instances = $cpanel->uapi(
    'WordPressInstanceManager', 'get_api_version',
	    array(
        )
);

my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
 
# Retrieves the WordPress Manager plugin's version.
my $instances = $cpliveapi->uapi(
    'WordPressInstanceManager', 'get_api_version',
	    {
        }
);

<!-- Retrieves the WordPress Manager plugin's version -->
[% data = execute( 'WordPressInstanceManager', 'get_api_version'{ } ); %]

uapi --user=username WordPressInstanceManager get_api_version

{
	"errors": null,
	"status": 1,
	"metadata": {},
	"data": {
		"version": "1.0.1-0"
	},
	"messages": null
}

Parameters

This function does not accept parameters.

Returns

ReturnTypeDescriptionPossible valuesExample
versionstringThe WordPress Manager plugin's version.

A version number in the X.Y-Z format, where:

  • X represents the major version.
  • Y represents the minor version.
  • Z represents the build version.
1.0.1-0