I'm trying to change an element in the WP Front End accordingly with a previous validation (if the user is logged in). Most concretly my code would be something like this:
<?php
if ( is_user_logged_in() ) {
// html button
} else {
// different html button
}
?>
To make it work I thought that a HTML block from WP would do the trick however is not working. Does anyone know how can I achieve this?
Thanks in advance