From bdf19a2692727130825fb77161f99ba5ca3c763d Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sun, 22 Jan 2023 12:46:58 +0100 Subject: Callbacks can't be private methods. --- includes/class-giglogadmin-plugin.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/includes/class-giglogadmin-plugin.php b/includes/class-giglogadmin-plugin.php index ff56d77..96f3c5f 100644 --- a/includes/class-giglogadmin-plugin.php +++ b/includes/class-giglogadmin-plugin.php @@ -58,7 +58,7 @@ if ( ! class_exists( 'GiglogAdmin_Plugin' ) ) { * * @return void */ - private static function add_admin_pages(): void { + public static function add_admin_pages(): void { if ( ! current_user_can( 'manage_options' ) ) { return; } @@ -97,7 +97,7 @@ if ( ! class_exists( 'GiglogAdmin_Plugin' ) ) { /** * Adds the "help" pages in the WordPress admin menu. */ - private static function add_help_pages(): void { + public static function add_help_pages(): void { if ( ! current_user_can( 'manage_options' ) ) { return; } @@ -155,4 +155,3 @@ if ( ! class_exists( 'GiglogAdmin_Plugin' ) ) { GiglogAdmin_Plugin::init(); } - -- cgit v1.2.3