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

Zac Gordon

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.