Hidden
Screenshots

Settings
This field doesn't have any specific settings. It only uses common settings.
This is a sample field settings array when creating this field with code:
[
'id' => 'field_id',
'type' => 'hidden',
// Hidden field must have predefined value
'std' => 'Hidden value',
],
Data
Although the value is fixed in the code, this field still saves it in the database.
Template usage
To get the field value, use this code
<?php $value = rwmb_meta( 'my_field_id' ) ?>
<p>The hidden value: <?= $value ?>
这篇文档对你有帮助吗?
谢谢你的反馈!