'pixtypes', 'settings-key' => 'pixtypes_settings', 'textdomain' => 'pixtypes', 'template-paths' => array( $basepath . 'core/views/form-partials/', $basepath . 'views/form-partials/', ), 'fields' => array( 'hiddens' => include 'settings/hiddens' . PIXTYPES_EXT, 'post_types' => include 'settings/post_types' . PIXTYPES_EXT, 'taxonomies' => include 'settings/taxonomies' . PIXTYPES_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 ), 'postupdate' => array( 'save_settings' ), ), 'cleanup' => array( 'switch' => array( 'switch_not_available' ), ), 'checks' => array( 'counter' => array( 'is_numeric', 'not_empty' ), ), 'errors' => array( 'not_empty' => esc_html__( 'Invalid Value.', 'pixtypes' ), ), 'callbacks' => array( 'save_settings' => 'save_pixtypes_settings' ), 'display_settings' => $display_settings, // shows exception traces on error 'debug' => $debug, ); # config