Skip to content

Commit 15fb355

Browse files
committed
Fix: GDPR not showing on the login page
1 parent c324546 commit 15fb355

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

GDPR/GDPR.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function __construct() {
6363
* @return void
6464
*/
6565
private function register_hooks() {
66-
add_action( 'admin_init', array( $this, 'admin_init' ), 5 );
66+
add_action( 'init', array( $this, 'init' ), 5 );
6767
}
6868

6969
/**
@@ -73,7 +73,7 @@ private function register_hooks() {
7373
*
7474
* @return void
7575
*/
76-
public function admin_init() {
76+
public function init() {
7777
$this->maybe_install_db();
7878

7979
$this->legal_consent = new LegalConsent();

0 commit comments

Comments
 (0)