Skip to content

Instantly share code, notes, and snippets.

@theukedge
Created September 14, 2013 21:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theukedge/6565814 to your computer and use it in GitHub Desktop.
Save theukedge/6565814 to your computer and use it in GitHub Desktop.
<?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