You appear to be a bot. Output may be restricted
Description
Show/process a contact form using oik
Usage
bw_display_contact_form( $atts, $user );
Parameters
- $atts
- ( array ) required –
- $user
- ( string ) optional –
Returns
voidSource
File name: oik/shortcodes/oik-contact-form.phpLines:
1 to 16 of 16
function bw_display_contact_form( $atts, $user=null ) { $contact_form_id = bw_contact_form_id( true ); $contact = bw_array_get( $_REQUEST, $contact_form_id, null ); if ( $contact ) { oik_require_lib( "bobbforms" ); oik_require_lib( "oik-honeypot" ); do_action( "oik_check_honeypot", "Human check failed." ); $contact = bw_verify_nonce( "_oik_contact_form", "_oik_contact_nonce" ); if ( $contact ) { $contact = _bw_process_contact_form_oik(); } } if ( !$contact ) { _bw_show_contact_form_oik( $atts, $user ); } }View on GitHub View on Trac