Problem with "sufficient permissions" -> Custom plugin
-
Hi!
I just started working on my own plugin but already got an error. This is all the code I have: (Changed the plugin information though)
<?php /* Plugin Name: WP Plugin Plugin URI: http://pluginsite.com Description: Some cool plugin features Version: 0.5 Author: James Smith Author URI: http://pluginsite.com License: GPL2 */ function fanvo_admin(){ include("plugin_admin.php"); } function fanvo_admin_actions(){ add_options_page("WP Plugin", "WP Plugin", 1, "WP Plugin", "fanvo_admin"); } add_action('admin_menu', 'fanvo_admin_actions'); ?>
This gives me a link under “Settings”, clicking this gives me:
“You do not have sufficient permissions to access this page.”I made a new installation but still the same problem.
Any solutions to this?Regards.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Problem with "sufficient permissions" -> Custom plugin’ is closed to new replies.