Skip to content

Commit e7f1938

Browse files
authored
Merge pull request #152 from jocastaneda/cookie-name-filter
Adds `password_protected_cookie_name` filter for the cookie name.
2 parents 8fefbfd + c5e31df commit e7f1938

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

password-protected.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,10 @@ public function clear_auth_cookie() {
643643
*/
644644
public function cookie_name() {
645645

646-
return $this->get_site_id() . '_password_protected_auth';
646+
/**
647+
* Filters the cookie name
648+
*/
649+
return apply_filters( 'password_protected_cookie_name', $this->get_site_id() . '_password_protected_auth', $this );
647650

648651
}
649652

0 commit comments

Comments
 (0)