/home/desid573/verdenaturopathy.com.au/wp-content/plugins/meta-box/inc
NameSizeModeActions
about/-0755rm
fields/-0755rm
helpers/-0755rm
interfaces/-0755rm
storages/-0755rm
templates/-0755rm
update/-0755rm
walkers/-0755rm
autoloader.php18730644editdlrm
clone.php37550644editdlrm
core.php30830644editdlrm
field-registry.php18620644editdlrm
field.php183420644editdlrm
functions.php108570644editdlrm
loader.php39220644editdlrm
media-modal.php34220644editdlrm
meta-box-registry.php17610644editdlrm
meta-box.php133030644editdlrm
request.php25070644editdlrm
sanitizer.php89600644editdlrm
storage-registry.php5450644editdlrm
validation.php12300644editdlrm
wpml.php37090644editdlrm
Edit: /home/desid573/verdenaturopathy.com.au/wp-content/plugins/meta-box/inc/meta-box-registry.php (1761B)
add( $meta_box ); return $meta_box; } /** * Add a meta box to the registry. * * @param RW_Meta_Box $meta_box Meta box instance. */ public function add( RW_Meta_Box $meta_box ) { $this->data[ $meta_box->id ] = $meta_box; } /** * Retrieve a meta box by id. * * @param string $id Meta box id. * * @return RW_Meta_Box|bool False or meta box object. */ public function get( $id ) { return isset( $this->data[ $id ] ) ? $this->data[ $id ] : false; } /** * Get meta boxes under some conditions. * * @param array $args Custom argument to get meta boxes by. * * @return array */ public function get_by( $args ) { $meta_boxes = $this->data; foreach ( $meta_boxes as $index => $meta_box ) { foreach ( $args as $key => $value ) { $meta_box_key = 'object_type' === $key ? $meta_box->get_object_type() : $meta_box->$key; if ( $meta_box_key !== $value ) { unset( $meta_boxes[ $index ] ); continue 2; // Skip the meta box loop. } } } return $meta_boxes; } /** * Retrieve all meta boxes. * * @return array */ public function all() { return $this->data; } }