/home/techb158/public_html/wp-content/plugins/meta-box/inc
NameSizeModeActions
fields/-0755rm
helpers/-0755rm
interfaces/-0755rm
storages/-0755rm
walkers/-0755rm
autoloader.php15210666editdlrm
clone.php35920666editdlrm
core.php28890666editdlrm
field-registry.php16700666editdlrm
field.php186010666editdlrm
functions.php108770666editdlrm
loader.php45160666editdlrm
media-modal.php31600666editdlrm
meta-box-registry.php13050666editdlrm
meta-box.php126760666editdlrm
request.php24210666editdlrm
sanitizer.php85810666editdlrm
shortcode.php26000666editdlrm
storage-registry.php4180666editdlrm
validation.php26510666editdlrm
Edit: /home/techb158/public_html/wp-content/plugins/meta-box/inc/field-registry.php (1670B)
data[ $object_type ] ) ) { $this->data[ $object_type ] = []; } if ( empty( $this->data[ $object_type ][ $type ] ) ) { $this->data[ $object_type ][ $type ] = []; } $this->data[ $object_type ][ $type ][ $field['id'] ] = $field; do_action( 'rwmb_field_registered', $field, $type, $object_type ); } /** * Retrieve a field. * * @param string $id A meta box instance id. * @param string $type Post type|Taxonomy|'user'|Setting page which the field belongs to. * @param string $object_type Object type which the field belongs to. * * @return bool|array False or field configuration. */ public function get( $id, $type, $object_type = 'post' ) { return $this->data[ $object_type ][ $type ][ $id ] ?? false; } /** * Retrieve fields by object type. * * @param string $object_type Object type which the field belongs to. * * @return array List of fields. */ public function get_by_object_type( string $object_type = 'post' ): array { return $this->data[ $object_type ] ?? []; } }