Function yourprefix_limit_rest_view_to_logged_in_users
Only show this box in the CMB2 REST API if the user is logged in.
Parameters summary
boolean |
$is_allowed |
Whether this box and its fields are allowed to be viewed. |
|
$cmb_controller |
<p>The controller object. CMB2 object available via <code>$cmb_controller->rest_box->cmb</code>.</p> |
Return value summary
boolean
|
Whether this box and its fields are allowed to be viewed. |