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

Allow adding a plugin parameter named is_callable #205

Merged
merged 2 commits into from
Jun 11, 2014

Commits on Jun 8, 2014

  1. Allow adding a plugin parameter named is_callable

    Here's a use case: Yoast's WordPress SEO Plugin and the Premium version. Mostly same plugin but different slugs. This allows you to say "no, the slug doesn't exist, but this function (or method) is callable, so the plugin must be active".
    
    Here's the plugin array item passed to `tgmpa()`: 
    
    ``
    array(
        'name'      => 'WordPress SEO by Yoast',
        'slug'      => 'wordpress-seo',
        'required'  => false,
        'is_callable' => 'wpseo_init',
    )
    ``
    
    If the `wpseo_init()` function exists, the plugin's still considered active.
    zackkatz committed Jun 8, 2014
    Configuration menu
    Copy the full SHA
    0b426d2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    524d560 View commit details
    Browse the repository at this point in the history