Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sitewide Custom Functions
#2
Create a plugin like:

PHP Code:
<?php
$thisfile 
basename(__FILE__".php");
register_plugin(
    
$thisfile,
    
'Sitewide custom functions',
    
'0.1',
    
'Author name',
    
'#',
    
'Sitewide custom functions. Do not deactivate!'
);

function 
sitewide_function1() {
//...
}
// end 

and insert your custom functions there. Save as sitewide.php (or whatever you prefer) and activate the plugin. They will be available to all themes.
Reply


Messages In This Thread
Sitewide Custom Functions - by meepmeep - 2013-04-03, 08:13:11
RE: Sitewide Custom Functions - by Carlos - 2013-04-03, 16:58:56
RE: Sitewide Custom Functions - by meepmeep - 2013-04-03, 17:01:16
RE: Sitewide Custom Functions - by shawn_a - 2013-04-03, 23:00:41



Users browsing this thread: 1 Guest(s)