JavaScript for WordPress Forums Gutenberg Development Meta data – default value Reply To: Meta data – default value

#87324
Zac Gordon
Keymaster

Correct. I believe you do not want to have a default value for the meta field.

One simple way here is if the value of the attribute is empty you can just write a conditional to use another value.