• Hello. A wp beginner here. I am trying to script/automate activation of certain (or all) plugins in the plugins directory during initial install without having to go through the Control Panel. Would you please point me in the right direction about the best way to do that? Any help or hint is very much appreciated.

Viewing 1 replies (of 1 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    The installation process can be totally overridden by a custom install.php file in the wp-content directory.

    Take a close look at wp-admin/includes/upgrade.php. Notice that it includes the wp-content/install.php file first, and that the major functions have a if ( !function_exists()) call immediately in front of them. This lets them be replaced by any identically named functions in your custom install.php file.

    So, basically, you can make the install process do anything you like. You’ll have to copy the existing process and add on to it though. For info on activating a plugin, look at the activate_plugin() function closely.

Viewing 1 replies (of 1 total)
  • The topic ‘Unattended Install and Plugin Activation’ is closed to new replies.