array ( 'switch' => array('switch_not_available'), ), 'checks' => array ( 'counter' => array('is_numeric', 'not_empty'), ), 'processor' => array ( // callback signature: (array $input, PixCustomifyProcessor $processor) 'preupdate' => array ( // callbacks to run before update process // cleanup and validation has been performed on data ), 'postupdate' => array ( // callbacks to run post update ), ), 'errors' => array ( 'is_numeric' => __('Numberic value required.', pixcustomify::textdomain()), 'not_empty' => __('Field is required.', pixcustomify::textdomain()), ), 'callbacks' => array ( // cleanup callbacks 'switch_not_available' => 'pixcustomify_cleanup_switch_not_available', // validation callbacks 'is_numeric' => 'pixcustomify_validate_is_numeric', 'not_empty' => 'pixcustomify_validate_not_empty' ) ); # config