$value) { if ($key!='kpg_readwrite') { if ($kpg_readwrite) { add_filter('pre_update_option_'.$key,'kpg_global_set',10,2); add_filter('add_option_'.$key,'kpg_global_add',1,2); add_filter('delete_option_'.$key,'kpg_global_delete'); } add_filter('pre_option_'.$key,'kpg_global_get',1); } } } } kpg_global_setup(); // when plugin is loaded this get's done // get a list of options that you want globalized function kpg_global_control() { // I like the name of this function if (!function_exists('switch_to_blog')) { ?>
This plugin is only works if your blog has been configured as a network (WPMU) blog.
This plugin is working correctly. The options are only available from the Main Blog.
The following global options are set:
$value) { if ($key!='readonly') { echo "$key "; } } echo "
"; return; } /* echo "Current ops"; print_r($ops); echo "
"; print_r($ops); echo "
"; print_r($fops); echo "