Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New module: require plugins #4

Open
mallorydxw opened this issue Jul 12, 2016 · 0 comments
Open

New module: require plugins #4

mallorydxw opened this issue Jul 12, 2016 · 0 comments

Comments

@mallorydxw
Copy link
Contributor

There should be a simple way to check that required plugins are installed.

i.e.:

<?php

namespace Dxw\MyTheme;

class CheckPlugins extends \Dxw\Iguana\Extras\CheckPlugins
{
    protected $plugins = [
        'advanced-custom-fields-pro',
    ];
}
<?php
$registrar->addInstance(new \Dxw\MyTheme\CheckPlugins());

This should either:

  • Activate the plugin, and show an error when the user tries to deactivate it, or
  • Show an error in wp-admin so long as the plugin is not activated, with a button to activate the plugin(s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant