We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea0b0a7 commit b1aa1bfCopy full SHA for b1aa1bf
php/src/class-settings.php
@@ -82,10 +82,10 @@ protected function register_hooks() {
82
/**
83
* Add tracker as a settings menu item.
84
*
85
- * @return void
+ * @return string|false The option page's hook_suffix, or false if the user does not have the capability required.
86
*/
87
public function add_admin_menu() {
88
- add_options_page(
+ return add_options_page(
89
__( 'Site Performance Tracker', 'site-performance-tracker' ),
90
91
'manage_options',
0 commit comments