Activates a plugin.
Helper Functions In wpcom-vip-plugins-ui/wpcom-vip-plugins-ui.php
deactivate_plugin
Deactivates a plugin.
get_menu_url
Generates a link to the plugin’s menu page.
get_active_plugins_option
Gets the list of VIP plugins that have been activated via the UI.
cleanup_active_plugins_option
Removes any invalid plugins from the option, i.e.
get_plugin_activation_link
Generates the URL to activate a VIP plugin.
get_plugin_deactivation_link
Generates the URL to deactivate a VIP plugin.
is_plugin_active
Determines if a given plugin slug is already activated or not.
add_activate_or_deactive_action_link
Filters an array of action links to add an activation or deactivation link.
validate_plugin
Validates a plugin slug.
action_admin_post_plugin_activate
Handles the plugin activation links and activates the requested plugin.
action_admin_post_plugin_deactivate
Handles the plugin deactivation links and deactivates the requested plugin.
display_menu_page
Outputs the contents of the menu page.
community_plugins_menu_columns
Filters the columns of the Community Plugins table.
is_wpcom_vip
Are we on WordPress.com VIP or somewhere else?
include_active_plugins
Includes any active plugin files that are enabled via the UI/option.
action_admin_menu_add_menu_item
Adds the new menu item and registers a few more hook callbacks relating to the menu page.
action_enqueue_scripts
Load the assets for this plugin on the correct screen only
instance
Main WPcom_VIP_Plugins_UI Instance
__construct
A dummy constructor to prevent WPcom_VIP_Plugins_UI from being loaded more than once.
__clone
A dummy magic method to prevent WPcom_VIP_Plugins_UI from being cloned
__wakeup
A dummy magic method to prevent WPcom_VIP_Plugins_UI from being unserialized
setup_globals
Set up the class variables.
setup_actions
Set up early action hooks for this plugin
action_init
Now that we’ve given the theme time to register its own filters, set up the rest of the plugin’s hooks and run some filters.
WPcom_VIP_Plugins_UI
The main function responsible for returning the one true WPcom_VIP_Plugins_UI instance to functions everywhere.