$extensions
$extensions : array
All extensions.
Class MainWP_Extensions_Handler
get_indexed_extensions_infor(array $args = array(), boolean $deactivated_license = null) : array
Get MainWP Extensions infor array.
array | $args | Empty Array. |
boolean | $deactivated_license | Get extensions that deactivated license or not. |
Array of Extensions.
gen_api_password(integer $length = 12, boolean $special_chars = true, boolean $extra_special_chars = false) : \MainWP\Dashboard\MainWP_Api_Manager_Password_Management::generate_password()
Generate API Password.
integer | $length | Lenght of password. |
boolean | $special_chars | true|false, allow special characters. |
boolean | $extra_special_chars | true|false, allow extra special characters. |
hook_fetch_urls_authed(mixed $pluginFile, string $key, object $dbwebsites, string $what, mixed $params, mixed $handle, mixed $output) : mixed
Fetch Authorized URLS.
mixed | $pluginFile | Extension plugin file to verify. |
string | $key | The child key. |
object | $dbwebsites | The websites. |
string | $what | Action to perorm. |
mixed | $params | Request parameters. |
mixed | $handle | Request handle. |
mixed | $output | Request output. |
false|MainWP_Connect::fetch_urls_authed()
hook_fetch_url_authed(mixed $pluginFile, mixed $key, mixed $websiteId, mixed $what, mixed $params, null $rawResponse = null) : mixed
Fetch Authorized URL.
mixed | $pluginFile | Extension plugin file to verify. |
mixed | $key | The child-key. |
mixed | $websiteId | Child Site ID. |
mixed | $what | What. |
mixed | $params | Parameters. |
null | $rawResponse | Raw responce. |
On incorrect website.
false|throw|error
fetch_url_authed(mixed $websiteId, mixed $what, mixed $params, null $rawResponse = null) : mixed
Fetch Authorized URL.
mixed | $websiteId | Child Site ID. |
mixed | $what | What. |
mixed | $params | Parameters. |
null | $rawResponse | Raw responce. |
On incorrect website.
false|throw|error
hook_get_db_sites(mixed $pluginFile, mixed $key, mixed $sites, string $groups = '', boolean $options = false) : array
Get DB Sites.
mixed | $pluginFile | Extension plugin file to verify. |
mixed | $key | The child-key. |
mixed | $sites | Child Sites. |
string | $groups | Groups. |
boolean | $options | Options. |
$dbwebsites.
hook_get_sites(string $pluginFile, string $key, integer $websiteid = null, boolean $for_manager = false, array $others = array()) : array
Get Sites.
string | $pluginFile | Extension plugin file to verify. |
string | $key | The child-key. |
integer | $websiteid | The id of the child site you wish to retrieve. |
boolean | $for_manager | Check Team Control. |
array | $others | Array of others. |
$output Array of content to output.
hook_get_groups(string $pluginFile, string $key, integer $groupid, boolean $for_manager = false) : array|boolean
Method hook_get_groups()
Get Child Sites within groups & store them in an array.
string | $pluginFile | Extension plugin file to verify. |
string | $key | The child-key. |
integer | $groupid | The id of the group you wish to retrieve. |
boolean | $for_manager | Check Team Control. |
$output|false An array of arrays, the inner-array contains the id/name/array of site ids for the supplied groupid/all groups. False when something goes wrong.
hook_clone_site(mixed $pluginFile, mixed $key, mixed $websiteid, mixed $cloneID, mixed $clone_url, boolean $force_update = false) : mixed
Clone Site.
mixed | $pluginFile | Extension plugin file to verify. |
mixed | $key | The child-key. |
mixed | $websiteid | Child Site ID. |
mixed | $cloneID | Clone ID. |
mixed | $clone_url | URL to CLone to. |
boolean | $force_update | true|false, force an update. |
false|$ret
hook_delete_clone_site(mixed $pluginFile, mixed $key, mixed $clone_url = '', boolean $clone_site_id = false) : mixed
Delete Clones Site.
mixed | $pluginFile | Extension plugin file to verify. |
mixed | $key | The child-key. |
mixed | $clone_url | URL to Clone to. |
boolean | $clone_site_id | Cloned Site ID. |
false|array Array => "Success".