I don’t think there is a function. But you can create your own like this
function function_name(){
global $new_whitelist_options;
// array of option names
$option_names = $new_whitelist_options[ 'your_option_group_name' ];
// your_option_group_name is in register_setting( 'your_option_group_name', $option_name, $sanitize_callback );
foreach ($option_names as $option_name) {
echo get_option($option_name).'<br>';
}
}
See: here
EDIT:
$new_whitelist_options was renamed to $new_allowed_options since 5.5.0.
view change log here
Related Posts:
- dbDelta not creating tables
- How to fork a plugin?
- Where to store PHP files created by plugin / themes
- How to implement color picker from wordpress in my plugin?
- Nonces can be reused multiple times? Bug / Security issue?
- WordPress 4.5 deprecated get_currentuserinfo()
- Single Responsibility Principle and WP Classes
- How to control output of custom post type without modifying theme?
- Admin config screen without menu
- What is the added “complexity” of custom tables?
- why don’t I get error messages in admin when developing?
- Use CodeMirror editor for both CSS and HTML on the same page
- How to create a dynamic page based on form data with a plugin?
- How can I change HTTP headers only to posts of a specific category from a plugin
- Plugin development, hooks, generate content
- Add a reset button to the options page (using Settings API)?
- Mediaelement.js feature doesn’t work
- How to Display Custom Post Type’s Gallery (images ) in Through WP_Query
- How to alter the order of custom form fields
- Help with callback using do_action_ref_array
- Dynamic content in a widget
- How can I find the ‘public absolute’ path of a file?
- Script to get a list of all images that are detached?
- Gutenberg: useDispatch is not a function – @wordpress/data included
- How to get orders with used coupon in WooCommerce
- how to include javascript file and css file in wordpress
- Can I individually style items in the backend widget list?
- Is using WP Transients to save external data for a plugin the best/right way?
- Why not to include reference to /wp-admin/admin.php in Plugin
- How to Create database table when Plugin installed/activated, and delete database when Plugin deleted
- include wp-blog-header not working on MAMP
- Comments do not respect display_name setting, how to make plugin to overcome this
- WordPress database error for query INSERT INTO
- How to connect to AWS RDS external database (not for the core WordPress db)
- Checkbox Undefined index error in Plugin
- Change the look and feel of admin pages
- How to Debug: My Plugin Interferes With My Theme
- Display WordPress the_content() via data attributes
- Constraints in custom tables for plugin development – Yes or No?
- How to stop activation addon if the main plugin is not activated
- How would you compose a complex plugin with lots of routes and functions? [closed]
- Run Shortcode of post’s custom field in functions.php / Plugin
- Settings API with arrays example
- load_plugin_textdomain doestn’t work with add_action plugins_loaded
- add_rewrite_rule behaving strangely
- Problem with context in multisite – getting main site data in every blog (get_pages())
- What plugin development paradigm differences have occurred between version 3.5 and now?
- change add to cart button link [closed]
- How do I change the image from the default mysteryman in the WP Profile page
- Error: Call to a member function get_error_code() on a non-object
- Store custom meta box data as serialized array
- Using Product variations as product addons
- WordPress: How to rename the main php plugin base file?
- Filter for admin (back end) ‘reply to’ comment
- How to get custom post_author?
- Change author permalink to external URL
- Is there any way to hide page from dashboard (all pages list) OR navbar from plugin function?
- AJAX request not routing through proxy
- WordPress database error: [Query was empty] – using $wpdb->prepare()
- Custom Settings Plugin Save foreach checkboxes
- wp.media Uncaught TypeError: Cannot read properties of undefined (reading ‘state’)
- wordpress full site editing problem when extending core blocks
- How to check if `comment_meta` exists before inserting the comment?
- Showing results from json-string in WordPress search results page
- Multiple dynamic Tax Query – pass taxonomy argument from array
- Add default custom taxonomy to plugin activation
- ajax stopped working when not logged in wordpress
- How to revive (or take over) a plugin?
- Make visible page only in the trash
- Reading plugin settings in esnext wordpress block
- Plugin frontend page design irrespective of the theme used
- Overriding the template files using a plugin for all themes
- Woocommerce product not appearing in category list page when created programatically [closed]
- add_meta_box does not display meta box in Admin
- implementing socket.io with wordpress
- Determine if the current page, is being edited
- List Table action argument not cleared
- How to store in the database directly the translation?
- How to affect front page by plugin
- What is the “best” way to update a theme via a plugin?
- Is there a an option to modify the post content directly on the browser instead of having it reflected on browser by modifying in the database?
- Acessing WP functions in form submission handler
- How to limit the number of posts a user can view based on status
- WordPress permalink setting
- Custom theme and plugin updating
- Error when trying to save custom post type settings (ERROR: options page not found)
- Developing a plugin, ran it through P3 Profiler, shows up slow, but I don’t know why
- Dynamic banner for use on external sites
- What method should I use to store my plugin data (multi level menus with options on each item)
- Error on using __FILE__ for add_menu_page() Function
- Getting error of unexpected output during activation
- Practical Solutions to HTML5 Video on WordPress
- An adiitional function fires on my AJAX submit
- Projectmanager Internal Link Code Location
- Select options not reloading after form submit
- How to add something after a function
- Is the only way to add taxonomy terms via an admin panel?
- how many rupee or dollar charge to client to make theme [closed]
- Elementor Top-Bar
- Is it possible to add Custom Dashboard Widgets to Custom Admin Menu Page?