Jan 13, 2012

wordpress – login form using PHP

<?php
if ( is_user_logged_in() ) {
    echo '';
} else {
    wp_loginout($_SERVER['REQUEST_URI']);
};
?>

Other interesting stuff:

<?php wp_loginout(); ?>
and
<?php wp_register(); ?>

source 1

source 2

source 3

No comments: