How to use add_settings_error in register_setting callback
Take a look at the add_settings_error prototype. add_settings_error( $setting, $code, $message, $type ); The first argument is your settings name/key — or if your setting is on another page (eg general) it should be the page key. The second is whatever you’d like to add to the ID attribute, then error/updated message, and finally type. … Read more