Метод |
Описание |
|
can ( string $capability ) : Themosis\Metabox\IMetabox |
Define a custom capability to check before adding the metabox. |
|
make ( string $title, string $postType, array $options = [], Illuminate\View\View $view = null ) : Themosis\Metabox\IMetabox |
Build a metabox instance. |
|
set ( array $fields = [] ) : Themosis\Metabox\IMetabox |
Register the metabox to WordPress. |
|
validate ( array $rules = [] ) : Themosis\Metabox\IMetabox |
Define a list of validation rules to execute on metabox fields. |
|
with ( string $key, mixed $value = null ) : Themosis\Metabox\IMetabox |
Pass custom data to the metabox view. |
|