• Resolved kacper3355

    (@kacper3355)


    Hello. I’ve checked “only logged in users can send posts” but I would like to change login url of “You need to log in if you want to send post”. “Log in” redirects to default WordPress login page, but I have registration in frontend on my site. Can you please tell me how can I change it?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jeff Starr

    (@specialk)

    Glad to help. There isn’t an option to change it via the settings, but it is possible to customize using a filter hook. To do so, add the following code via functions.php or custom plugin:

    function usp_require_login_url($url) {
    	$url = 'https://example.com/'; // edit this to whatever you want
    	return $url;
    }
    add_filter('usp_require_login_url', 'usp_require_login_url');

    Then just change the $url value to whatever you want.

    Thread Starter kacper3355

    (@kacper3355)

    Thanks mate, you the best!
    Works like a charm.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Changing login url’ is closed to new replies.