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
- Customize WP Filter Hook
- Remove 3rd party plugin notices from within own plugin
- How can I see all the actions attached to an “add_action” hook?
- I found this in a plugin. What does it do? is it dangerous?
- How to set back-end language per user?
- Is there any debug toolbar that shows whick hooks are called for the current page in WordPress?
- How to remove items from +New admin menu?
- Using the ‘draft_to_publish’ hook (post status transition)
- Using tabs for wordpress plugin
- Intercepting a add_action
- How can I show drafts in wp_dropdown_pages list?
- How to make a WP admin button/menu similar to Jetpack Notifications?
- Trying to add admin file upload form plugin
- Hide extra menus from WordPress Dashboard
- When to call add_filter
- Where (or when) should I register a new taxonomy?
- Hook (or other way) to find out when another plugin is activated / installed
- Default WordPress WP Editor removing style tags and html tag
- How to stop activating a plugin and show admin notice when dependent plugins minimum version is not met
- qTranslate remove default directory from link
- URL parameters causing 404 on home page, but nowhere else
- Which filter affects the ‘entry-title’ post class
- Suitable hook when creating, updating and deleting posts programmatically
- How to add product thumbnail on orders list on backend?