Description
Validate a "post_title" fieldDoes WordPress invoke any functions? Something during the pre_post_insert ?
Usage
bw_validate_function_title( $abbrev, $fields, $validated );Parameters
- $abbrev
- ( mixed ) required –
- $fields
- ( mixed ) required –
- $validated
- ( mixed ) required –
Returns
voidSource
File name: oik-fields/shortcodes/oik-new.phpLines:
1 to 7 of 7
function bw_validate_function_title( $abbrev, $fields, &$validated ) { $valid = bw_obtain_field( "post_title", $validated ); if ( $valid ) { $validated['post_title'] = sanitize_text_field( $validated['post_title'] ); } return( $valid ); }View on GitHub
