You appear to be a bot. Output may be restricted
Description
Function to run when oik-fields-validation is loadedAdd filters for each of the field validation routines supported by oik-fields
- text – sanitize_text_field()
- textarea – wp_kses_data()
- email – is_email()
Usage
oik_fields_validation_loaded();
Parameters
Returns
voidTO DO
? the following have not yet been tested or even developed 2013/07/22 checkbox – must be 0 or 1 currency numeric date select noderef URL etc These are implemented as filters which either return the filtered value OR an errorSource
File name: oik-fields/includes/oik-fields-validation.phpLines:
1 to 7 of 7
function oik_fields_validation_loaded() { $fields = array( "text", "textarea", "email" ); //, "select", "checkbox" ); foreach ( $fields as $field ) { bw_trace2( $field ); add_filter( "bw_field_validation_$field", "oik_fields_validation_$field", 10, 3 ); } }View on GitHub