RpmInitiator
extends AbstractInitiator
in package
Uses
UtilsProvider
Initiate real-product-manager-wp-client functionality.
Table of Contents
Properties
- $pluginUpdate : PluginUpdate
- Plugin update instance.
Methods
- buildTelemetryData() : mixed
- Allows you to build telemetry data.
- formAdditionalCheckboxes() : array<string|int, mixed>
- Allows to configure additional checkboxes in the license activation form.
- getAccountSiteUrl() : mixed
- getHost() : mixed
- getLicenseKeyHelpUrl() : mixed
- Documented in AbstractInitiator.
- getMigrationOption() : null|string
- Documented in AbstractInitiator.
- getPluginAssets() : Assets
- Documented in AbstractInitiator.
- getPluginBase() : Base
- Documented in AbstractInitiator.
- getPluginConstantPrefix() : string
- Get the prefix of this plugin so composer packages can dynamically build other constant values on it.
- getPluginFile() : mixed
- getPluginName() : mixed
- getPluginSlug() : mixed
- getPluginUpdater() : PluginUpdate
- Get the plugin updater instance.
- getPluginVersion() : mixed
- getPrivacyPolicy() : string
- Documented in AbstractInitiator.
- getPrivacyProvider() : string
- Get the privacy provider.
- getProductAndVariant() : array<string|int, int>
- Documented in AbstractInitiator.
- isAdminNoticeLicenseVisible() : bool
- Documented in AbstractInitiator.
- isAutoUpdatesEnabled() : bool
- Returns `true` if the current WordPress installations allows automatic updates for this plugin.
- isExternalUpdateEnabled() : bool
- Documented in AbstractInitiator.
- isLocalAnnouncementVisible() : bool
- Documented in AbstractInitiator.
- isMultisiteLicensed() : bool
- Return `false` if you want to disable license per site in multisite.
- isNewsletterEnabled() : bool
- Return `false` if you want to disable sending newsletter signup.
- isTelemetryEnabled() : bool
- Return `false` if you want to disable sending telemetry data.
- start() : mixed
- Initialize all available things depending on the configuration.
Properties
$pluginUpdate
Plugin update instance.
private
PluginUpdate
$pluginUpdate
Methods
buildTelemetryData()
Allows you to build telemetry data.
public
buildTelemetryData(TelemetryData $telemetry) : mixed
Parameters
- $telemetry : TelemetryData
formAdditionalCheckboxes()
Allows to configure additional checkboxes in the license activation form.
public
formAdditionalCheckboxes() : array<string|int, mixed>
It should return an array in form of:
[
[
'id' => 'my-checkbox',
'text' => 'This is my awesome checkbox',
'stateFn' => function($state) {
// Do anything with $state
// You can also return `WP_Error`
}
]
]
Return values
array<string|int, mixed>getAccountSiteUrl()
public
getAccountSiteUrl() : mixed
getHost()
public
getHost() : mixed
getLicenseKeyHelpUrl()
Documented in AbstractInitiator.
public
getLicenseKeyHelpUrl() : mixed
Tags
getMigrationOption()
Documented in AbstractInitiator.
public
getMigrationOption() : null|string
Tags
Return values
null|stringgetPluginAssets()
Documented in AbstractInitiator.
public
getPluginAssets() : Assets
Tags
Return values
AssetsgetPluginBase()
Documented in AbstractInitiator.
public
getPluginBase() : Base
Tags
Return values
BasegetPluginConstantPrefix()
Get the prefix of this plugin so composer packages can dynamically build other constant values on it.
public
getPluginConstantPrefix() : string
Tags
Return values
stringgetPluginFile()
public
getPluginFile() : mixed
getPluginName()
public
getPluginName() : mixed
getPluginSlug()
public
getPluginSlug() : mixed
getPluginUpdater()
Get the plugin updater instance.
public
getPluginUpdater() : PluginUpdate
Return values
PluginUpdategetPluginVersion()
public
getPluginVersion() : mixed
getPrivacyPolicy()
Documented in AbstractInitiator.
public
getPrivacyPolicy() : string
Tags
Return values
stringgetPrivacyProvider()
Get the privacy provider.
public
getPrivacyProvider() : string
Return values
stringgetProductAndVariant()
Documented in AbstractInitiator.
public
getProductAndVariant() : array<string|int, int>
Tags
Return values
array<string|int, int>isAdminNoticeLicenseVisible()
Documented in AbstractInitiator.
public
isAdminNoticeLicenseVisible() : bool
Tags
Return values
boolisAutoUpdatesEnabled()
Returns `true` if the current WordPress installations allows automatic updates for this plugin.
public
isAutoUpdatesEnabled() : bool
Returns false
if the current plugin is already enabled for auto updates.
Attention: We have implemented to only update minor and patch versions, no major versions!
Tags
Return values
boolisExternalUpdateEnabled()
Documented in AbstractInitiator.
public
isExternalUpdateEnabled() : bool
Tags
Return values
boolisLocalAnnouncementVisible()
Documented in AbstractInitiator.
public
isLocalAnnouncementVisible() : bool
Tags
Return values
boolisMultisiteLicensed()
Return `false` if you want to disable license per site in multisite.
public
isMultisiteLicensed() : bool
For wordpress.org plugins (free) the multisite-license is disabled.
Return values
boolisNewsletterEnabled()
Return `false` if you want to disable sending newsletter signup.
public
isNewsletterEnabled() : bool
Return values
boolisTelemetryEnabled()
Return `false` if you want to disable sending telemetry data.
public
isTelemetryEnabled() : bool
Return values
boolstart()
Initialize all available things depending on the configuration.
public
start() : mixed