You appear to be a bot. Output may be restricted
Description
Implements the [bw_contact_user] shortcodeThis creates an inline contact form for the user using similar code to Jetpack… or Jetpack itself? OR any of the other contact form plugins….
Usage
oiku_contact_user( $atts, $content, $tag );
Parameters
- $atts
- ( mixed ) optional –
- $content
- ( mixed ) optional –
- $tag
- ( mixed ) optional –
Returns
voidSource
File name: oik-user/shortcodes/oik-contact-user.phpLines:
1 to 16 of 16
function oiku_contact_user( $atts=null, $content=null, $tag=null ) { oik_require( "shortcodes/oik-user.php", "oik-user" ); $id = bw_array_get_dcb( $atts, "id", "id", "oiku_default_user" ); $user = bw_get_user( $id ); if ( $user ) { // e( "Send email to " . $user->user_email ); $atts['email'] = $user->user_email; $atts['form'] = bw_array_get( $atts, "form", "oik" ); // $atts['text'] = bw_array_get_dcb( $atts, "text", "text", "oikifs_default" ); oiku_display_contact_form( $atts, $user ); } else { e( "Cannot produce contact form for unknown user: $id "); } return( bw_ret() ); }View on GitHub