You appear to be a bot. Output may be restricted
Description
Call the function to validate a fieldFinds the function that will validate the 'field' and invokes it
Usage
$bool = bw_call_validate_function( $abbrev, $fields, $validated );
Parameters
- $abbrev
- ( string ) required – the single character abbreviation representing the field to validate
- $fields
- ( array ) required – array of custom post type field names expected
- $validated
- ( array ) required – array of validated fields
Returns
bool true if validation was successfulSource
File name: oik-fields/shortcodes/oik-new.phpLines:
1 to 8 of 8
function bw_call_validate_function( $abbrev, $fields, &$validated ) { $functions = _bw_validate_functions(); $function = bw_array_get( $functions, $abbrev, "bw_validate_function_undefined" ); bw_trace2( $function, "function", true, BW_TRACE_VERBOSE ); $valid = call_user_func_array( $function, array( $abbrev, $fields, &$validated ) ); //bw_trace2( $valid, "valid?", false ); return( $valid ); }View on GitHub