Section214 Settings library updated

December 25, 2015     Section214    

Some of you may remember (or even be using) our settings library for WordPress. Well, we just wanted to drop you a line and let you know that it just got a tiny update. Not too much has changed… we've added support for the std argument to the multicheck field, and added a nifty new filter, your_plugin_unsavable_tabs. The new filter is super simple, and (in our case) super useful. It's really just an array… empty by default, which allows you to specify settings tabs that shouldn't show the save button. Nice and simple! Enjoy!

Here's a quick example of how to use the your_plugin_unsavable_tabs filter… Remember, replace your_plugin with the slug of your plugin!

function your_plugin_unsavable_tabs() {
    return array( 'support' );
}
add_filter( 'your_plugin_unsavable_tabs', 'your_plugin_unsavable_tabs' );
Categories: News

Leave a Reply

Your email address will not be published. Required fields are marked *

Rating*