Collections functions
General functions
Render functions
Theme permission functions
Resource functions

register_plugin()

Parameters

ColumnTypeDefaultDescription
$plugin

Location

include/plugin_functions.php lines 1440 to 1457

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 5th October 2022 02:35 Europe/London time based on the source file dated 2nd September 2022 14:25 Europe/London time.