showing fields only to logged users
-
hi,
i want to show/hide fields for users that are logged in/out.
i know i can edit the code, for example i’ve added this to modules/submit.php:if ( !is_user_logged_in() ) { return; }
inside wpcf7_submit_shortcode_handler() just before return $html;
but this will be overwritten with a new cf7 update.
but is it the best way??maybe there is some short-code attribute to show/hide according to user logged or not?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘showing fields only to logged users’ is closed to new replies.