Hi Christoph,
I’m not sure if you’re still tracking forum topics here. Using your example, I tried to save the color schemes to my theme.
add_filter( 'apermo-adminbar-sites', 'sites_filter' );
function sites_filter( $sites ) {
$sites['dev']['url'] = 'https://dev.your-site.tld';
$sites['staging']['color'] = 'coffee';
$sites['dev']['whitelist'] = array( 1,42 );
$sites['staging']['url'] = 'https://staging.your-site.tld';
$sites['staging']['color'] = 'ectoplasm';
$sites['live']['url'] = 'https://www.your-site.tld';
return $sites;
}
Have I altered the code correctly in the above example? When I tested it, all settings are loaded via the filter except the color scheme. It reverts to default options set in your plugin.
]]>Hi Christoph,
> Oh bother! No topics were found here!
That could easily be changed ??
Notice: Undefined property: wpdb::$dmtable in /var/www/wordpress/wp-includes/wp-db.php on line 684
any idea re that?
Appears as soon, as PlugIn is enabled
best regards Stefan
]]>