Skip to content

Commit

Permalink
Change role with capability in menu page hook
Browse files Browse the repository at this point in the history
  • Loading branch information
samiahmedsiddiqui committed Jul 11, 2024
1 parent 3410fb5 commit 16c9bbc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions admin/class-make-paths-relative-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,23 +46,23 @@ public function admin_menu() {
add_menu_page(
'Make Paths Relative Settings',
'Make Paths Relative',
'administrator',
'activate_plugins',
'make-paths-relative-settings',
array( $this, 'admin_settings_page' )
);
$settings_page = add_submenu_page(
'make-paths-relative-settings',
'Make Paths Relative Settings',
'Settings',
'administrator',
'activate_plugins',
'make-paths-relative-settings',
array( $this, 'admin_settings_page' )
);
$about_page = add_submenu_page(
'make-paths-relative-settings',
'About',
'About',
'administrator',
'activate_plugins',
'make-paths-relative-about-plugins',
array( $this, 'about_plugin' )
);
Expand Down

0 comments on commit 16c9bbc

Please sign in to comment.