Download the PHP package horttcore/wp-meta-box without Composer
On this page you can find all versions of the php package horttcore/wp-meta-box. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package wp-meta-box
WordPress Meta Box Helper
Installation
$ composer require ralfhortt/wp-meta-box
Usage
- Extend
RalfHortt\MetaBoxes\MetaBox()
- You MUST set
$this->identifier
,$this->name
,$this->screen
in the class constructor - You CAN set the additional variables
$this->context
,$this->priority
,$this->callbackArgs
- You MUST Add a
render()
method - You CAN add a
save()
method - A nonce is added automatically and checked
Extend
Action
do_action("before-meta-box-{$this->identifier}", $post, $callbackArgs)
do_action("after-meta-box-{$this->identifier}", $post, $callbackArgs)
do_action("saved-meta-box-{$this->identifier}", $postId, $post, $update)
Example
Changelog
3.0
- Fix PSR4 namespace
2.0
- Change namespace
- Changed visibility of
render
andsave
form public to protected - Save method is now not mandatory
- Added return type definition
- Added action hooks
- Validate
context
andpriority
- Fixed meta box callback arguments
1.1
- Add save_post args
1.0
- Initial release
All versions of wp-meta-box with dependencies
PHP Build Version
Package Version
No informations.
The package horttcore/wp-meta-box contains the following files
Loading the files please wait ....