«view archives

Adobe Muse Widget require WordPress plugin

Rules for plugin requirement.

If you build a Widget for “Muse to WordPress”, its possible that you need to use your own php code and one or more WordPress’s plugins.

Insert the following HTML code to require a plugin
[code_snippet id=2]

Args:

based on TGM Plugin Activation

Parameter Type Details
name string The name of the plugin.
slug string The plugin slug, which is typically the name of the folder that holds the plugin.
required boolean Either true or false. Defaults to false.
If set to true, the plugin will show as required.
If set to false or not set, the plugin will show as recommended.
source string The source of the plugin.
This parameter is required if the plugin you are referencing is not from the WordPress Plugin Repository.
You can reference either bundled plugins or plugins elsewhere on the internet from this parameter.
For bundled plugins, this should be the path to the .zip file. For external plugins, the direct url to the .zip file.
version string The minimum version required for the plugin.
This parameter is useful if you require a minimum version of a plugin in order for your theme or plugin to work.
If the user has the plugin installed but does not meet the minimum version specified, a notice will show asking them to update the plugin to the latest version.
N.B.: This parameter is required if you want users to update a plugin with a newer bundled version.
force_activation boolean Either true or false. Defaults to false.
If set to true, it forces the specified plugin to be active at all times while the current theme (or plugin) is active. The plugin can only be deactivated after switching themes or deactivation of your plugin.
force_deactivation boolean Either true or false. Defaults to false.
If set to true, it forces the specified plugin to be deactivated when the current theme is switched. This is useful for deactivating theme-specific plugins.
external_url string An external URL for the plugin.
By default, plugins referenced from the WordPress Plugin Repository are linked to their plugin information via a thickbox overlay. This parameter overrides this default behavior and allows you to specify an alternative URL for the plugin which – when clicked – will be opened in a new tab/window.
is_callable string|array Advanced feature. If a plugin can be installed under two or more different slugs – for instance a basic version and a premium version using different slugs -, it might not be recognized correctly as active.
By setting is_callable to either a function function_name from that plugin or a class method – array( 'class', 'method' ) – similar to how you hook in to actions and filters – TGMPA can still recognize the plugin as being active.

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

There are no stupid questions! Let's talk

FOLLOW US

Find us on Adobe Muse Resources

 

© Copyright 2017-2018 MWuse

ACCESS TO ALL WIDGETS & THEMES

(BY MUSE TO WORDPRESS)

You will be free to leave and to continue using the downloaded themes and widgets.

Discover   /   Installation   /   Tutorials   /   Shortcodes   /   FAQ   /   News   /   mwuse.com - Powered by Muse and WordPress