2013-04-03, 16:58:56
Create a plugin like:
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.
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.