$instance
$instance : mixed
Public static variable to hold the single instance of the class.
Class MainWP_Child_Branding
MainWP Branding extension handler.
plugin_row_meta(array $plugin_meta, string $plugin_file, string $child_plugin_slug) : array
Method plugin_row_meta()
Handle plugin meta information when custom branding is applied.
array | $plugin_meta | An array of the plugin's metadata, including the version, author, author URI, and plugin URI. |
string | $plugin_file | Path to the plugin file relative to the plugins directory. |
string | $child_plugin_slug | MainWP Child plugin slug. |
An array of the plugin's metadata, including the version, author, author URI, and plugin URI.
get_extra_settings(array $current_extra_setting, array $settings, array $information) : array
Method get_extra_settings()
Get extra branding settings.
array | $current_extra_setting | An array containing the current extra branding settings. |
array | $settings | An array containing the branding settings. |
array | $information | An array containing the synchronization information. |
An array of branding extra settings
branding_upload_image(string $img_url) : array
Method branding_upload_image()
Upload custom image from MainWP Dashboard.
string | $img_url | Contains image URL. |
Error message.
An array containing the image information such as path and URL.
manage_my_category_columns(array $defaults) : array
Method manage_my_category_columns()
Hide the post slug metabox.
array | $defaults | An array containing default Manage Posts columns. |
$defaults An updated array containing default Manage Posts columns.
custom_gettext(array $translations, string $text) : array
Method custom_gettext()
Replace language domains.
array | $translations | An array containing the list of available translations. |
string | $text | Contains the text to replace. |
$translations An array containing the list of available translations.
custom_generator(string $generator, string $type = '') : string
Method custom_generator()
Set custom generator meta tag.
string | $generator | Contains the generator information. |
string | $type | Contains the generator type information. |
Contains the updated generator information.
add_support_button_in_top_admin_bar(object $wp_admin_bar) : boolean
Method add_support_button_in_top_admin_bar()
Add or remove the admin bar Support button node.
object | $wp_admin_bar | An object containing the WP Admin bar information. |
If conditions not met, return false.
branding_map_meta_cap(array $caps, string $cap) : array
Method branding_map_meta_cap()
Set cutom capabilities to disable theme switching.
array | $caps | An array of capabiilities. |
string | $cap | Contains the capability. |
$caps An array of updated capabiilities.
update_plugin_header(array $plugins, array $header) : array
Method update_plugin_header()
Update plugin header to show custom plugin info.
array | $plugins | An array of installed plugins information. |
array | $header | An array containig plugin information. |
$plugins Updated array of installed plugins information.