Hook into WP lostpassword_url filter so that code that calls wp_lostpassword_url() actually uses new lost password page rather
than wp-login.php. For example, WC Login Widget.
This commit is contained in:
parent
8debb1697c
commit
8d0f42b298
|
@ -325,4 +325,14 @@ add_filter( 'woocommerce_short_description', 'convert_chars' );
|
|||
add_filter( 'woocommerce_short_description', 'wpautop' );
|
||||
add_filter( 'woocommerce_short_description', 'shortcode_unautop' );
|
||||
add_filter( 'woocommerce_short_description', 'prepend_attachment' );
|
||||
add_filter( 'woocommerce_short_description', 'do_shortcode', 11 ); // AFTER wpautop()
|
||||
add_filter( 'woocommerce_short_description', 'do_shortcode', 11 ); // AFTER wpautop()
|
||||
|
||||
function woocommerce_lostpassword_url( $url ) {
|
||||
|
||||
$id = woocommerce_get_page_id( 'lost_password' );
|
||||
if ($id != -1) $url = get_permalink( $id );
|
||||
|
||||
return $url;
|
||||
}
|
||||
|
||||
add_filter('lostpassword_url', 'woocommerce_lostpassword_url');
|
||||
|
|
Loading…
Reference in New Issue