Functions

load_tgm_plugin_activation

Ensure only one instance of the class is ever invoked.

« More »

tgmpa

Helper function to register a collection of required plugins.

« More »

tgmpa_load_bulk_installer

Load bulk installer

« More »

pegasus_register_required_plugins

Register the required plugins for this theme.

In this example, we register five plugins: - one included with the TGMPA library - two from an external source, one from an arbitrary source, one from a GitHub repository - two from the .org repo, where one demonstrates the use of the `is_callable` argument The variables passed to the `tgmpa()` function should be: - an array of plugin arrays; - optionally a configuration array. If you are not changing anything in the configuration array, you can remove the array and remove the variable from the function call: `tgmpa( $plugins );`. In that case, the TGMPA default settings will be used. This function is hooked into `tgmpa_register`, which is fired on the WP `init` action on priority 10.
« More »

Classes, interfaces and traits

TGM_Bulk_Installer

Hack: Prevent TGMPA v2.4.1- bulk installer class from being loaded if 2.4.1- is loaded after 2.5+.

« More »

TGM_Bulk_Installer_Skin

Hack: Prevent TGMPA v2.4.1- bulk installer skin class from being loaded if 2.4.1- is loaded after 2.5+.

« More »

TGM_Plugin_Activation

Automatic plugin installation and activation library.

Creates a way to automatically install and activate plugins from within themes. The plugins can be either bundled, downloaded from the WordPress Plugin Repository or downloaded from another external source.
« More »

TGMPA_Bulk_Installer

Installer class to handle bulk plugin installations.

Extends WP_Upgrader and customizes to suit the installation of multiple plugins.
« More »

TGMPA_Bulk_Installer_Skin

Installer skin to set strings for the bulk plugin installations.

. Extends Bulk_Upgrader_Skin and customizes to suit the installation of multiple plugins.
« More »

TGMPA_List_Table

List table class for handling plugins.

Extends the WP_List_Table class to provide a future-compatible way of listing out all required/recommended plugins. Gives users an interface similar to the Plugin Administration area with similar (albeit stripped down) capabilities. This class also allows for the bulk install of plugins.
« More »

TGMPA_Utils

Generic utilities for TGMPA.

All methods are static, poor-dev name-spacing class wrapper. Class was called TGM_Utils in 2.5.0 but renamed TGMPA_Utils in 2.5.1 as this was conflicting with Soliloquy.
« More »