Collections functions
General functions
Render functions
Theme permission functions
User functions
Resource functions

register_plugin()

Parameters

ColumnTypeDefaultDescription
$plugin

Location

include/plugin_functions.php lines 1462 to 1479

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 11th December 2023 21:35 Europe/London time based on the source file dated 7th September 2023 11:45 Europe/London time.