Skip to content

Releases: LayeredStudio/wp-helpers

v1.10.0

24 Oct 15:35
Compare
Choose a tag to compare

Added - Long text field (textarea)
Fixed - escape input values

Added Q for background processing

06 Dec 17:03
Compare
Choose a tag to compare

New library for handling async actions in WordPress plugins and themes.

queue_action('the_action', 'data') instead of do_action('the_action', 'data')

Updated helper functions

15 Nov 10:10
Compare
Choose a tag to compare

Helper functions are updated:

  • Added wp_remote_retrieve_json to convert a JSON HTTP response to PHP array
  • Updated getVisitorCountryCode to check the location through WordFence plugin (if enabled) for quicker response

Added meta fields for User

06 Nov 16:03
Compare
Choose a tag to compare

This version adds support for meta fields on User edit page and more field types.

  • Display meta fields on User edit page (if showInMetaBox is set to true)
  • User field type - a select that lists the site users

Geo location helper function

23 Oct 10:47
Compare
Choose a tag to compare

This release adds a new helper function getVisitorCountryCode which returns the visitor's country code. Example:

$visitorCountry = getVisitorCountryCode();
// returns string(2): ES, US, UK, etc

Support for bulk editable fields!

21 Oct 15:25
Compare
Choose a tag to compare

This version adds a helpful option, a switch to add meta fields in Bulk Edit screen!

Complete changes:

  • new option showInBulkEdit for bulk fields editing
  • sanitize_callback option for checking & validating user data
  • API for adding/modifying field types through meta_field_types filter hook

Added Inflector helper

06 Oct 13:05
Compare
Choose a tag to compare

Added a simple Inflector class for use in WP code

Layered\Wp\Inflector::humanize('makes_nicer_labels')

v1.4.2

23 Sep 14:37
Compare
Choose a tag to compare

Fixed - handle meta boxes for Comments

v1.4.1

23 Sep 11:59
Compare
Choose a tag to compare
  • Updated - option to pass args for term/post fields
  • Fixed - show editable field for 'integer'

Meta fields in User columns

18 Sep 15:27
Compare
Choose a tag to compare
  • display meta fields in User columns
  • callback for custom column content