Description

This function verifies that the RPM-based WordPress® cPAddon exists on the system.

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

Examples


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

$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
 
// Verify that the RPM-based WordPress cPAddon exists on the system.
 $instances = $cpanel->uapi(
    'WordPressInstanceManager', 'is_installable_addon_available',
	    array(
        )
);

my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
 
# Verify that the RPM-based WordPress cPAddon exists on the system.
my $instances = $cpliveapi->uapi(
    'WordPressInstanceManager', 'is_installable_addon_available',
	    {
        }
);

<!-- Verify that the RPM-based WordPress cPAddon exists on the system. -->
[% data = execute( 'WordPressInstanceManager', 'is_installable_addon_available'); %]

uapi --user=username WordPressInstanceManager is_installable_addon_available

{
	"status": 1,
	"metadata": {},
	"messages": null,
	"errors": null,
	"data": 1
}

Parameters

This function does not accept parameters.

Returns

ReturnTypeDescriptionPossible valuesExample

data

BooleanWhether the RPM-based WordPress cPAddon exists on the server.
  • 1 — Exists.
  • 0 — Does not exist.
1