Default value for add_settings_field

I’m creating a simple settings page by following these instructions.

Since this is a custom plugin, I’d like one of my settings to start with a predefined value (that can later be changed). What is the recommended way to set a default value for a setting added with add_settings_field?

Related posts

Leave a Reply

1 comment