Description
Load an oik_contact record by the email address
Usage
oiksp_get_contact( $email );Parameters
- ( mixed ) required –
Returns
voidSource
File name: oik-squeeze/shortcodes/oik-squeeze.phpLines:
1 to 14 of 14
function oiksp_get_contact( $email ) { $saved = oiksp_set_current_user(); oik_require( "includes/bw_posts.php" ); $atts = array( "post_type" => "oik_contact" , "meta_key" => "_oiksp_email" , "meta_value" => $email , "post_status" => "private" , "numberposts" => 1 ); $posts = bw_get_posts( $atts ); $post = bw_array_get( $posts, 0, null ); oiksp_set_current_user( $saved ); return( $post ); }View on GitHub
Called by
1 to 1 of 1
Invoked by
Calls
1 to 2 of 2
