Created
September 14, 2013 21:29
-
-
Save theukedge/6565814 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// DETERMINE IF NEW MEMBER INFO COMPLETE | |
function new_member_info_complete( $atts, $content = null ) { | |
global $current_user; | |
get_currentuserinfo(); | |
$complete = esc_attr( $current_user->completed_new_member_info ); | |
if( $complete !== "Yes" ) { | |
return do_shortcode( $content ); | |
} | |
} | |
add_shortcode( 'new_member_info', 'new_member_info_complete' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment