wp_logout_url, but what how about registration url?
Can there be standard method of getting connect to registration? I have to display a hyperlink to registration page with further redirect to previous page.
PS I'm using my theme login.
Just in case of hosting your wordpress site inside a subfolder (e.g.:
mysite.com/myblog) you should also incorporate your site's url the following:
<?php echo get_site_url() . "/wp-login.php?action=register" ?>
Otherwise you'll be rerouted to some non-existing page
The next will return the registration url:
<?php echo site_url('/wp-login.php?action=register'); ?>
To obtain the registration url having a redirect to the present page use:
<?php echo site_url('/wp-login.php?action=register&redirect_to=' . get_permalink()); ?>