Closed jlambe closed 5 years ago
Metabox API has a can() method that developers can use in order to limit the display of the metabox based on a role or capability.
can()
// Metabox is viewed only by administrator... Metabox::make('My Metabox for admin', 'page')->set()->can('administrator');
2.0 version use the setCapability method instead. Documentation has been updated.
setCapability
Metabox API has a
can()
method that developers can use in order to limit the display of the metabox based on a role or capability.