I have a way that I’ve seen other plugins do it. They allow you to use a custom PHP function to override default values.
I have coded up a way, would you be willing to test it?
If so, send me your email address and I will send you the beta code:
http://zwebify.com/contact/
Here are the instructions that I wrote up:
//How to create your own Custom Default TopBar
//
// When the plugin is asked to create a new default TopBar, it first loads the array wptbOptions[]
// with all of the default values. Then, it looks to see if this function 'wptb_custom_default_values'
// exists. If it does, it will call that function. That function should ONLY update values in the
// wptbOptions[] array.
//
// You can copy this sample function into your theme's function.php or
// some other file that is loaded on your admin pages.
//
// Change any options below to match what you want in your own custom default TopBar.
//
// To see how to set the options, you can create a TopBar via the user interface, then export it.
// The export file will show you how to set each of the options below.
//
// sample code goes here....
Thread Starter
Nasah
(@nasah)
Hi Bob, thx for the quick reply. I would like to test it, so sending you an email straight away 🙂
Added feature to v. 5.23.