Simple Fields 1.0.5 released with some performance boost

Version 1.0.5 of Simple Fields has just been uploaded to WordPress.org. Worth to mention about this version:

  • I’ve started to use the WordPress Object Cache in a couple of often used functions. Quick tests with Xdebug shows a noticable faster performance by using this – on one of my sites, loading a page with lots of fields was suddenly double as fast!
  • Some new functions and methods have been added:
    • Method get_field_group() that returns an array with info about a field group by using id or slug.
    • Function simple_fields_fieldgroup() that works like simple_fields_value(s) but for a complete fieldgroup. Pretty good “shortcut” when you want to get all the field values in a field group.
    • Method get_field_by_slug() that returns a field from a fieldgroup using their slugs.
  • To make it easier for developers to style their added fields I’ve added some more classes to the field group wrapper and the field wrapper on the edit post screen. Just inspect the HTML to get the details 🙂
You may have noticed that the updates of Simple Fields are more frequent now. This is part of the “Release early, release often” software development philosophy that I’ve decided to try from now on. Hopefully this makes you, the users, become more involved in the development of the plugin, and in the long runt this will result in a higher quality plugin.

Leave a Reply