Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Example of how to hide the Personal information question group's email question using CSS if the current user is logged in.
<?php //Please do not include the opneing PHP tag if you already have one.
function tw_ee_hide_primary_email(){
if( is_user_logged_in() ) {
'div[id*="ee-reg-form-qstn-grp-personal-information"] .ee-reg-qstn-email {
display: none;
add_action( 'wp_enqueue_scripts', 'tw_ee_hide_primary_email', 50 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.