Collections functions
General functions
Render functions
Theme permission functions
Resource functions

register_plugin()

Parameters

ColumnTypeDefaultDescription
$plugin

Location

include/plugin_functions.php lines 1435 to 1452

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 25th May 2022 04:05 Europe/London time based on the source file dated 6th May 2022 16:50 Europe/London time.