Download the PHP package layered/wp-helpers without Composer
On this page you can find all versions of the php package layered/wp-helpers. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download layered/wp-helpers
More information about layered/wp-helpers
Files in layered/wp-helpers
Package wp-helpers
Short Description Helpers for easier WordPress development
License MIT
Informations about the package wp-helpers
WordPress Helpers
WP Helpers is a collection of classes and librariers for easier WordPress development.
Features and use cases
- CustomPostType - Register a new post type. It fills or generates values and post types can be added with one line of code, ex:
CustomPostType::add('idea');
- MetaFields - Easily add meta fields to Posts, Terms, Comments and Users, ex:
mf()->addPostMeta('number-field', ['name' => 'Number Field', type' => 'number'])
- Q - Process WP actions in background without blocking the current request. Usage:
queue_action('resources_hungry_action', 'data', 4, 'action')
- PostMetaBox - Create good looking and functional meta boxes for post types
How to use
Installation
Add layered/wp-helpers
as a require dependency in your composer.json
file:
Register post type
Example of adding a Post Type, create a CustomPostType
instance with name as first argument:
Meta Fields
Meta Fields are custom fields that can be easily added to Posts, Terms, Comments and Users. They are registered with default WordPress flow, showing up as columns in list views, editable fields on edit pages, editable fields for Quick/Bulk edit screens and REST Api:
Q
Q adds support for asynchronous actions in plugins and themes. Simple use, only include the file and switch from do_action()
to queue_action()
. Processing is handled in background, making web requests load qicker. Example:
More
Please report any issues here on GitHub.
Any contributions are welcome