Deprecated. Mark fields as Required in Advanced Custom Fields. A post can not be published with empty required fields.
The Required Field plugin can be used as WordPress plugin or included in other plugins or themes.
There is no need to call the Advanced Custom Fields
register_field() method for this field.
Pluginsmenu in WordPress.
required-field.phpfile in you theme's
functions.phpor plugin file.
include_once( rtrim( dirname( __FILE__ ), '/' ) . '/acf-required-field/required-field.php' );