Releases: LayeredStudio/wp-helpers
Releases · LayeredStudio/wp-helpers
v1.10.0
Added Q for background processing
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
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
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
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!
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
Added a simple Inflector class for use in WP code
Layered\Wp\Inflector::humanize('makes_nicer_labels')
v1.4.2
Fixed - handle meta boxes for Comments
v1.4.1
- Updated - option to pass args for term/post fields
- Fixed - show editable field for 'integer'
Meta fields in User columns
- display meta fields in User columns
- callback for custom column content