Enable Hidden Administration Feature displaying All Site Settings
Tested on: WordPress 3.1 RC3
This little piece of code does something pretty cool. It will add an additional option to your settings menu with a link to “all settings” which will show you a complete list of all the settings you have within your database related to your WordPress site. The code below will only made this link visible to an administrator user and hide it for all other users.
// CUSTOM ADMIN MENU LINK FOR ALL SETTINGS
function all_settings_link() {
add_options_page(__('All Settings'), __('All Settings'), 'administrator', 'options.php');
}
add_action('admin_menu', 'all_settings_link');
Related Posts:
- How do I call wp_get_current_user() in a plugin when plugins are loaded before pluggable.php?
- Shared functionality in plugins and themes
- Remote upload file to server B
- Editor access to plugin settings
- Creating button next to “add media” that allows you to choose a single post
- WooCommerce create new product and add to cart on form submit
- Post source link plugin – small modification
- What’s the point of using WordPress’s built in admin-ajax.php?
- Modifying Footnote Plugin for Descriptive Title Attributes
- How to Replace Words with Hypertext Link But Ignore Previously Existed Links?
- Debugging Technique Question re: functions.php
- Override the filter from plugin in child theme
- Remove Duplicator plugin from admin menu if not an administrator
- Add a custom form on the post-new.php admin page
- Edit Yoast SEO breadcrumbs output [closed]
- Calling an attribute from a plugin shortcode
- Redirect to another page using contact form 7? [closed]
- Display Custom Field Value on Admin Page Column
- Plugin Development – Functions or Hooks?
- Need to replace Currency Shortforms
- Overriding an Array in a Plugin’s Class/Function from functions.php
- Set up functions to be overridden without using function_exists() by short-circuiting them?
- Change Header (Logo) Based on Login
- how to change wp-admin url using function file
- same user role or copy the user role to be same as the other role
- Call javascript functions from each page
- How to add custom function to pluggable.php
- Gathering all Custom Post Type posts in to array/object the proper way
- What is the most efficient way of adding additional functionaliy for admin only
- How to keep plugin (media-sync) running even the tab is closed?
- RSS feeds for specific topics
- implement custom roles in custom plugin
- Post source link plugin – small modification
- Custom Plugin: How to Include Install Buttons of other 3rd Party Plugins?
- Adding discount functionality to the cart
- How to assign a specific service to a specific provider based on location
- Precheck fields when I add a new post
- working code, not working – Plugin Dev
- Echo custom admin field into a is_single()
- Place content inside the Post Loop
- Conditional required fields for WordPress Contact Form 7
- pluggable function in theme, to be overridden by plugin
- admin panel save option with ajax
- overwrite a plugin function in functions.php
- WordPress: code structure
- How to Add Extra Text In WordPress Title Before Post Publish
- How to disable plugin capability : “create new category”
- Product customizing quiz – quiz adding products to the cart
- Manually add order item with fixed product_id in WooCommerce
- FacetWP group listings by custom field [closed]
- How to modify shortcode attributes with data from current post
- ‘Customize’ button in admin bar for CSS
- Redeclare theme’s function in a plugin
- How to add class in plugin only for network site?
- How to send little data between admin pages of my plugin?
- Pass info from functions.php to plugin
- How does WordPress process plugin installations?
- Best way to modify a plugin with no hooks and no pluggable functions?
- Auto delete WordPress users according to time
- I have functions in my wordpress plugin. How do I get them to work for me?
- Plugin Customization Lost During Plugin Upgates
- WordPress Plugin Page is Loading in Admin Content Container Instead of Separate Page
- How to create TEMPORARY Download links in a wordpress POST?
- Conditionally add apt. Open Graph meta data to different pages on WordPress site
- PHP Fatal error: Call to undefined function plugin_basename
- Which plugin will let me decide what users have access to on their side bar in wp-admin?
- How can I make uploaded images in the editor load with HTTPS?
- How to import my YouTube channel into WordPress?
- Is it possible to use WordPress as an online portfolio for text content? What kind of theme would I look for?
- plugin development: problem with functions
- What would be the advantages/disadvantages of remote plugin installation?
- Custom Field Template seriously messed up in WP 3.1.1
- add_query_arg not working
- My Category is too big on the Menu what can i do?
- how to load the language file in plugin?
- Plugin upgrade issue
- How to use get_theme_mod in gutenberg editor wordpress?
- Shortcode button dosent work for all posts. Work for first post only
- Get IDs of Images from Gallery Block in InnerBlocks of a Custom Gutenberg Block
- How to embed HTML code from WP Coder plugin (or other) into Main Index Template of the theme
- Is there a way I can find wordpress posts that don’t contain a word?
- WordPress plugin – Error “Plugin generate 2890 characters of unexpected output when activated”
- Prevent shortcode from being wrapped in tags
- AJAX button run function
- How can I capture Memberpress user info after signup [closed]
- My plugin wants to update another plugin
- Editing admin pages in WordPress [closed]
- Dropdown menu on custom page with product to choose number of products per page
- Change wordpress current_time function to different timezone
- Call to undefined function get_userdata in user.php
- Inserting HTML tag with ACF into shortcode
- I have no idea “How change font for elements in widget?”
- View Private Published Page with URL Code (no login required)
- Hook to plugins admin settings
- Executing my function once on a specific time
- WordPress Registration Email by Role
- How to append to title via functions.php for auto-posting plugin [duplicate]
- How to stop or remove an action being called inside a function of an extended class
- Missing Argument
- JS Support Ticket – Auto create WP account