Skip to content

Instantly share code, notes, and snippets.

@templeman
templeman / product-room.php
Last active February 11, 2021 23:48
CMB2 metabox with custom after_group_row callback
/**
* CMB2 Metabox Registration: Product Rooms
*/
function register_product_room_metabox()
{
$prefix = 'product_';
for ($idx = 0; $idx < 14; $idx++) {
$product_rooms_box = new_cmb2_box([
'id' => $prefix . 'rooms_box_'.$idx,

Keybase proof

I hereby claim:

  • I am templeman on github.
  • I am templeman (https://keybase.io/templeman) on keybase.
  • I have a public key ASDCmNryCaTSGJtvrYhO4qNzIHWwy2JEgsf4ZzqX1vcCKwo

To claim this, I am signing this object: