Created
November 25, 2015 12:35
-
-
Save omariosouto/71eba28e9be869282684 to your computer and use it in GitHub Desktop.
Exibir conteúdo apenas quando estiver logado no WordPress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( is_user_logged_in() ) : ?> | |
// Aqui vai o conteúdo | |
<?php endif; ?> | |
// https://codex.wordpress.org/Function_Reference/is_user_logged_in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment