Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

register_plugin()

Parameters

ColumnTypeDefaultDescription
$plugin

Location

include/plugin_functions.php lines 1450 to 1467

Definition

 
function register_plugin($plugin)
    {
    global 
$plugins,$language,$pagename,$lang,$applicationname;

    
# Also include plugin hook file for this page.
    
if ($pagename=="collections_frameless_loader"){$pagename="collections";}
    
    
$pluginpath=get_plugin_path($plugin);
        
    
$hookpath=$pluginpath "/hooks/" $pagename ".php";
    if (
file_exists($hookpath)) {include_once $hookpath;}
    
    
# Support an 'all' hook
    
$hookpath=$pluginpath "/hooks/all.php";
    if (
file_exists($hookpath)) {include_once $hookpath;}
    
    return 
true;    
    }

This article was last updated 10th July 2020 19:05 Europe/London time based on the source file dated 2nd July 2020 09:08 Europe/London time.