Changed the user role for the options page from 'administrator' to 'manage_options'

This commit is contained in:
2026-07-21 17:31:08 +02:00
parent 0fd3f36078
commit 4bf2d4c049
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -83,6 +83,7 @@ Is this plugin prepared for multisites? Yes.
* Changed the registering of settings during installation to an array.
* Changed the unregistering of settings during uninstallation to an array.
* Deleted the setting of unnecessary variables under wp_jdt_activate_plugin() and made all the if statements strict.
* Changed the user role for the options page from 'administrator' to 'manage_options'.
= 4.1.0 =
* Compatibility with WordPress version 6.7.1
+1 -1
View File
@@ -46,7 +46,7 @@ function wp_jdt_create_menu()
{
//create admin side menu
add_options_page(__('WP jQuery DataTable Settings', 'wp-jquery-datatable'), __('WP jQuery DataTable', 'wp-jquery-datatable'), 'administrator', 'wp-jdt', 'wp_jdt_settings_page');
add_options_page(__('WP jQuery DataTable Settings', 'wp-jquery-datatable'), __('WP jQuery DataTable', 'wp-jquery-datatable'), 'manage_options', 'wp-jdt', 'wp_jdt_settings_page');
//call register settings function
add_action('admin_init', 'wp_jdt_settings');