Skip to content

Instantly share code, notes, and snippets.

@sergiois
Created October 7, 2016 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sergiois/afa88e675aca16f291065d7195f94651 to your computer and use it in GitHub Desktop.
Save sergiois/afa88e675aca16f291065d7195f94651 to your computer and use it in GitHub Desktop.
Código para recoger los parámetros de un plugin en cualquier lugar por código
$plugin = JPluginHelper::getPlugin('my_plugin_type', 'my_plugin');
// Check if plugin is enabled
if ($plugin)
{
// Get plugin params
$pluginParams = new JRegistry($plugin->params);
$param1 = $pluginParams->get('param1');
$param2 = $pluginParams->get('param2');
$param3 = $pluginParams->get('param3');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment