mycred_setup_addons

Description

This filter allows you to register a custom add-on or remove / rename a built-in one.

 

When creating a custom add-on, it is not required to use this filter unless you want users to select to enable the add-on on the myCRED > Add-ons page in the admin area. If you are adding a custom add-on via a plugin, you could however make the add-on auto enable when the plugin is enabled.

Available since version 1.0

Parameters

Param Type Required Description
$addons array Yes

An associative array of add-ons installed.

Structure:

  • name – The name shown in the add-on list.
  • description – Optional description for the add-on.
  • addon_url – Optional information url.
  • version – The version of the add-on.
  • author – The add-on authors name.
  • author_url – The add-on authors url.
  • screenshot – The add-on image.
  • pro_url – Option to show a different version of the add-on via a url.

Used By

Package Prio. Description
mycred/core 10 Used by the myCRED_Addons_Module class.

Examples

No example found.