'custom_body_class', 'settings-key' => 'custom_body_class_settings', 'textdomain' => 'wp-custom-body-class', 'template-paths' => array ( $basepath . 'core/views/form-partials/', $basepath . 'views/form-partials/', ), 'fields' => array ( 'hiddens' => include 'settings/hiddens' . EXT, 'general' => include 'settings/general' . EXT, ), 'processor' => array ( // callback signature: (array $input, PixtypesProcessor $processor) 'preupdate' => array ( // callbacks to run before update process // cleanup and validation has been performed on data 'save_settings' ), 'postupdate' => array ( ), ), 'cleanup' => array ( 'switch' => array( 'switch_not_available' ), ), 'checks' => array ( 'counter' => array( 'is_numeric', 'not_empty' ), ), 'errors' => array ( 'not_empty' => esc_html__( 'Invalid Value.', 'wp-custom-body-class' ), ), 'callbacks' => array ( 'save_settings' => 'save_custom_body_class_settings' ), // shows exception traces on error 'debug' => $debug, ); # config