jimport('joomla.plugin.helper'); // Import the JPluginHelper class $plugin = JPluginHelper::getPlugin('content', 'my_plugin'); // Get the plugin object
jimport('joomla.plugin.helper'); // Import the JPluginHelper class $plugin = JPluginHelper::getPlugin('system', 'my_plugin'); // Get the plugin objectIn this example, we use the getPlugin method to retrieve the system plugin object named "my_plugin". Package library: Joomla CMS library.