The add_submenu_page first parameter should be the top menu page handle which in you case is a-qoute
so:
function a_qoute_admin_action(){
add_menu_page(
__('Reservations Pages'),// the page title
__('Donation'),//menu title
'edit_themes',//capability
'a-qoute',//menu slug/handle this is what you need!!!
'qoute_settings',//callback function
'',//icon_url,
''//position
);
add_submenu_page(
'a-qoute',
'Donations Log', //page title
'Donations Log', //menu title
'edit_themes', //capability,
'DonationsLog',//menu slug
'Donations_Log' //callback function
);
}
add_action('admin_menu', 'a_qoute_admin_action');
Related Posts:
- Filter or action hook to insert content on admin pages before tag
- Edit default comments page in WP Admin
- Passing a parameter to filter and action functions
- Get a list of all registered actions
- How can I edit post data before it is saved?
- Changing the “Plugin Activated” Message Default
- How to Add a Third Level Sub Menu to the WordPress Admin Menu
- How to only hook on Single.php after content?
- Is There a WordPress Hook to Filter the Edit Posts View?
- How To Determine If A Filter Is Called In A Sidebar/Widget Context?
- Edit plugin without hooks in functions.php
- How can I log a user out of WordPress before the page loads?
- WordPress admin notice in plugin function
- Filter Hook on plugin update
- Hide WordPress Plugin Deactivation Links
- Use external link in the add sub menu
- Pass A Value From Outside To A Plugin Variable
- Failed to invoke other hook from the init hook
- Does the ‘nav_menu_css_class’ filter accept 2 or 3 arguments?
- do_action and hook methods
- How can I filter blog name?
- why does the add_action(‘the_content’) overwrite my page
- How to filter content post only on save
- plugin_action_links_{$plugin_file} hook not in the main plugin file
- Woocommerce Shipping module available only for type of products [closed]
- Determine plugin name from within plugin_action_links filter
- merging an array to an existing array using add_filter
- Making menu link open in new tab?
- Reposition Woocommerce Message
- Cannot access wp-admin after disabling all plugin
- Randomize attachment IDs
- ‘wp_login’ action hook not working with wp-login.php file
- Pass info from functions.php to plugin
- Change permalink structure hidden button edit
- How do action and filter hooks understand where to look for the core function that we hooked our function to them
- Inserting above the comment template
- All Users > User List > Update User Meta Field Inline
- Modifying the comments section through a plugin regardless of theme
- Get Time Taken By Each Action Hook in WordPress
- Filtering WooCommerce Orders by Category
- do_action() hook into load-(page)
- How to change the name of the “edit my profile” link in the WordPress admin backend
- Template filter for custom taxonomy terms
- What exactly happens to function argument availability when using a filter?
- remove_action not removing add_action from constructor
- How do I add some javascript validation to the admin interface form’s onsubmit?
- Filter WooCommerce Orders
- Display Plugin Panels Outside of Admin Areas
- How to use the pre_option filter before a plugin loads?
- How to use filter to disable adding a product to wishlist?
- WordPress: Add custom add_filter for custom functions
- getting notifications about updates only in the “core” page
- Remove value from array within post meta ajax admin
- Hook for altering the content of all wp mails
- How to hook into action/filter call
- Change Dashboard URL from wp-admin to wp-admin/index.php
- Use a hook or filter, or overwrite this Gamipress function?
- Add hook after content without formatting
- Unpublished Pages Failing To Appear On Custom Path
- Randomize post (and page) IDs on generation
- Plugin function in child theme
- Use action, filter, or hook to append HTML to WordPress plugin function
- Customize plugin templates
- wordpress plugin translation not working
- Why can’t I shove an instance of a class into a variable from a do_action hook?
- Admin page and admin menu. Permissions plugin
- Passing a parameter to filter and action functions
- Getting 404 page not found error while trying to access add new plugin / themes
- change output location of plugin function using a custom hook
- getpost content with all formatting for admin pages
- Which filters or actions involve with index page for plugin?
- add query string to all pages after user logged in
- Order shipped by which driver[hook for woocoomerce order staus changed and popup in admin panel ] [closed]
- How to Add Extra Text In WordPress Title Before Post Publish
- Allow direct access to files/folders within WordPress to replace wp-admin
- Change social icon in twenty twenty three theme
- Registering Class methods as hook callbacks
- How to customize woocommerce related products? [closed]
- Bad Request (Invalid Hostname) on working server, database problem
- Hide Theme options and Customize Admin menu
- How to provide a plugin which requires CMB2 (plugin dependencies)?
- Can I hook into get_avatar to supply a hash instead of an email?
- Editing admin pages in WordPress [closed]
- Is this the right way to execute some PHP in my plugin after a button click on an options page?
- How to add filter for wordpress plugin?
- Gathering all Custom Post Type posts in to array/object the proper way
- Adding a jQuery modal dialog to the admin area
- Excluding specific post from custom next/previous theme function
- WordPress Dashboard add user password not working, etc
- Edit plugin’s HTML output with Hooks
- Show custom taxonomy in theme
- How to enable Admins to see Plugins
- How to `remove_action` from plugin
- How to add php stylesheet to admin section instead of admin_head hook
- Transition Post status not working
- functions.php conditional output for a single plugin
- How to change response of admin-ajax request?
- What is the recommended way to be notified of security updates to my plugins? [closed]
- WordPress plugin add_filter returning a link does not work. What is the correct way?
- Screen Options drop-down does not show