Hi, I have this code: <p class="reviews"><?php if ( va_user_can_add_reviews() ) { echo html_link( get_permalink( get_the_ID() ) . '#add-review', __( 'Add your review', APP_TD ) ); echo ', '; } else if ( !is_user_logged_in() ) { echo html_link( get_permalink( get_the_ID() ) . '#add-review', __( 'Add your review', APP_TD ) ); echo ', '; } PHP: I want to display just the link: "Add review" which will lead to submit review form on my site.Can you tell me how to remove the unneeded data (which looks for user registration)and to wrap this code as link?
Since they both have the same code <p class="reviews"><?php if ( (va_user_can_add_reviews()) || (!is_user_logged_in()) ) { echo html_link( get_permalink( get_the_ID() ) . '#add-review', __( 'Add your review', APP_TD ) ); echo ', '; } PHP: