You appear to be a bot. Output may be restricted
Description
Issue a message for a particular fieldSimilar to add_settings_error() but not restricted to use by admin functions
Usage
bw_issue_message( $field, $code, $text, $type );
Parameters
- $field
- ( string ) required – field name e.g. _dtib_location
- $code
- ( string ) required – message code e.g. "invalid_location"
- $text
- ( string ) required – the message text e.g. "Invalid Location, please correct"
- $type
- ( string ) optional default: error – The type of message it is, controls HTML class. Use 'error' or 'updated'.
Returns
voidSource
File name: oik-fields/shortcodes/oik-new.phpLines:
1 to 13 of 13
function bw_issue_message( $field, $code, $text, $type='error' ) { bw_trace2( null, null, true, BW_TRACE_ALWAYS ); global $bw_messages; if ( !isset( $bw_messages ) ) { $bw_messages = array(); } $bw_messages[] = array( "field" => $field , "code" => $code , "text" => $text , "type" => $type ); return( false ); }View on GitHub