Skip to content

Customize messages #1

@danieliser

Description

@danieliser

@coenjacobs Just found your libs and in effort to simply start relying more on packages than writing our own code, specifically when it comes to boilerplate stuff.

We have a similar setup and I'd like to either find a way to get benefits we have from years of using our own merged into this library where appropriate, or being able to overload them where needed.

The first and biggest is the plugin check message. With our Popup Maker plugin's extension activator it checks for the core:

  • If they don't have it says "install" which is a link directly to 1 click install it from wordpress.org (mimics the install button on Add New plugin screen).
  • If they have it installed and it's not active, it says activate, which again is a link to do just that.
  • We also use a min_version for the core plugin as well in some cases, which has a 3rd message saying they need to upgrade to use the extension.

https://github.com/PopupMaker/Popup-Maker/blob/master/classes/Extension/Activator.php#L162-L180

I am happy to submit a PR with those enhancements.

One possibility would be something similar to another wp requirement package and accept an i18n array as an argument for Messages: https://packagist.org/packages/wearerequired/wp-requirements-check

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions