

The way I did it was to pass the file into PHP’s default encoding mechanism, and copy the path into my PHP as an absolute path. You may find that the above will load if you add it as an image source but it won’t color properly with the GUI and it will probably be the wrong size. So what we want to do is clean this up a lot and get rid of unnecessary data. Even when we add some line breaks and indent it, there’s a lot going on.

If you are using the Settings API to save data, and need the user to be other than the administrator, will need to modify the permissions via the hook option_page_capability_.The function which is hooked in to handle the output of the page must check that the user has the required ‘capability’ as well. This function takes a ‘capability’ (see Roles and Capabilities) which will be used to determine whether or not a page is included in the menu.If you only want to move existing admin menu items to different positions, you can use the admin_menu hook to unset menu items from their current positions in the global $menu and $submenu variables (which are arrays), and reset them elsewhere in the array.If you’re running into the “You do not have sufficient permissions to access this page” error, then you’ve hooked too early.See trac ticket #23316 for more information. Important Note: Since WordPress 4.4, you do not need to worry about making the position number unique to avoid conflicts.The position in the menu order this item should appear.
