diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2023-01-22 12:46:58 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2023-01-22 12:46:58 +0100 |
commit | bdf19a2692727130825fb77161f99ba5ca3c763d (patch) | |
tree | ed5dcd9cf8b83b93122312ccdf31f06d76592b32 /includes/class-giglogadmin-plugin.php | |
parent | eb6f88aec695a2d5d659975d763c02c2aadd381f (diff) | |
download | gigologadmin-bdf19a2692727130825fb77161f99ba5ca3c763d.tar.gz gigologadmin-bdf19a2692727130825fb77161f99ba5ca3c763d.tar.bz2 gigologadmin-bdf19a2692727130825fb77161f99ba5ca3c763d.zip |
Callbacks can't be private methods.
Diffstat (limited to 'includes/class-giglogadmin-plugin.php')
-rw-r--r-- | includes/class-giglogadmin-plugin.php | 5 |
1 files 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(); } - |