Skip to content

Commit

Permalink
Fix login_url filter
Browse files Browse the repository at this point in the history
  • Loading branch information
kilbot committed Jan 14, 2024
1 parent 582ca89 commit 3bedc0e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion includes/Templates/Frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,10 @@ function getScript(source, callback) {
*
*/
private function pos_logout_url() {
$login_url = apply_filters( 'login_url', site_url( '/wp-login.php' ), 'logout' );
/**
* Get the login URL, allow other plugins to customise the URL. eg: WPS Hide Login
*/
$login_url = apply_filters( 'login_url', site_url( '/wp-login.php' ), 'logout', false );

$redirect_to = urlencode( woocommerce_pos_url() );
$reauth = 1;
Expand Down

0 comments on commit 3bedc0e

Please sign in to comment.