Skip to content

Releases: LayeredStudio/wp-helpers

v1.10.0

Choose a tag to compare

@AndreiIgna AndreiIgna released this 24 Oct 15:35

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

Added Q for background processing

Choose a tag to compare

@AndreiIgna AndreiIgna released this 06 Dec 17:03

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

Choose a tag to compare

@AndreiIgna AndreiIgna released this 15 Nov 10:10

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

Choose a tag to compare

@AndreiIgna AndreiIgna released this 06 Nov 16:03

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

Choose a tag to compare

@AndreiIgna AndreiIgna released this 23 Oct 10:47

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!

Choose a tag to compare

@AndreiIgna AndreiIgna released this 21 Oct 15:25

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

Choose a tag to compare

@AndreiIgna AndreiIgna released this 06 Oct 13:05

Added a simple Inflector class for use in WP code

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

v1.4.2

Choose a tag to compare

@AndreiIgna AndreiIgna released this 23 Sep 14:37

Fixed - handle meta boxes for Comments

v1.4.1

Choose a tag to compare

@AndreiIgna AndreiIgna released this 23 Sep 11:59
  • Updated - option to pass args for term/post fields
  • Fixed - show editable field for 'integer'

Meta fields in User columns

Choose a tag to compare

@AndreiIgna AndreiIgna released this 18 Sep 15:27
  • display meta fields in User columns
  • callback for custom column content