All features

Cherry Blossom feature

Updates Migrations: Activate Recommended Plugins

Activates available recommended plugins during initial installation.

Activates available recommended plugins during initial installation.

Capabilities and extension points

Activates installed agency-standard plugins on a clean theme installation.

Immutable migration identifier.

  • var string

Parent version that introduced the installation patch.

The marker release treats this migration as satisfied on existing sites. Clean installations on later versions execute its install() method.

  • var string

Gets plugins activated by this installation patch.

Plugin order is significant: Rank Math must be active before its Pro extension is activated.

  • return array Plugin basenames keyed by descriptive identifier.

Activates each recommended plugin when its main file exists.

WordPress activation hooks are allowed to run so each plugin can create its required options or database structures. An activation failure stops the installation migration and remains visible through the lifecycle notice and WP-CLI status command; already activated plugins are safely skipped when the migration retries.

  • param Context $context Migration context.
  • return true|\WP_Error True on success, or the activation failure.

Leaves plugin activation unchanged when an existing site is updated.

This migration is install-only. Existing sites baselined at the marker release must retain their deliberately configured plugin state.

  • param Context $context Migration context.

Source reference

This editable reference page is based on the PHP documentation in updates/migrations/class-activate-recommended-plugins.php.