I just gave this a shot and it seemed to work fine:
function wpse_form_in_admin_bar() {
global $wp_admin_bar;
$wp_admin_bar->add_menu( array(
'id' => 'wpse-form-in-admin-bar',
'parent' => 'top-secondary',
'title' => '<form><input type="text" /><input type="submit" /> </form>'
) );
}
add_action( 'admin_bar_menu', 'wpse_form_in_admin_bar' );
You’ll have to do some work to gussy it up a bit, but it looks like there is a chance you can do what you want.
Related Posts:
- Creating a table in the admin-style?
- body_class hook for admin pages
- Change admin language based on user (in single-site)
- What is the real intention for admin-post.php?
- Admin config screen without menu
- Make Categories and Tags required in admin
- Error with Custom Admin Screen in iframe Thickbox
- why don’t I get error messages in admin when developing?
- WP_Error handles errors, but how can I show success with a message?
- JS / JQuery form validation in backend admin menus
- How to put placeholder text in the main post input area?
- Is it possible to modify the media library admin screen?
- What does $_registered_pages do?
- Get user id for delete and update selected user
- Add tab to profile.php wordpress plugin development
- WordPress Ajax callback function from plugin – OOP
- Admin auto-refresh is interfering with Firebug — how to prevent it?
- Including a JS source with an admin page
- WordPress not working on localhost
- maintaing consistent layout wordpress dashboard
- Add column and post filter for a custom post type field on the edit.php page
- Is there no admin ui guide for 4.x?
- Correct check for any admin page with editor
- Adding (blog-specific) links to “My Sites” admin page
- Change the look and feel of admin pages
- Admin Plugin POST to another file within the plugin
- Admin – Handle data before creating or updating a post, page or custom post
- How can I replace content in the WP Admin area before an admin page is rendered?
- Add a page in admin without adding menu item
- Including comments meta box on a plugin page
- How to Move the Comments Bubble to the Right Side of the Toolbar
- Does admin_print_scripts-$hook_suffix work for nested paths to individual files?
- Use ‘get’ form action within a WordPress plugin admin page
- Does is_admin() really provide a plugin performance improvement?
- Disable Auto-Expanding Menu in WordPress Admin Menus
- Best practice for plugin: always detect admin-ajax call?
- Plugin Development – Get Admin Url (Including cases where wp-admin is not used)
- Proper way to create an administration page without adding it to the menu
- using admin functions on frontend
- Google Web Core Vitals – management, how to in wordpress and advice
- Add two button to page and post admin to redirect to : add new & list of (posts – pages) just after saving post or page
- How to create plugin settings page for each admin user?
- How to return a blank page
- Adding admin for specific users
- How do I control the list of Pages an author can see?
- What happens when you create/edit a menu
- loop and in admin header problem
- modify buddpress adminbar only in admin pages
- How do I programatically insert a new menu item?
- When would I use either function for plugins?
- Test to see if jQuery or Prototype is queued by another plugin?
- How to tell if an option has been created vs an empty option?
- jQuery in header or footer
- Notice: _usort_terms_by_ID is deprecated since version 4.7.0! Use wp_list_sort instead
- How to add a new plugin page under desired Options page?
- Plugin screenshots not showing in the repository
- How to make WordPress use non-greedy shortcode parsing?
- Multiple Parameters for a Shortcode
- How to change post status in hook?
- Including file or library from other plugin
- Do uploaded plugins get updates if they came from the wordpress plugin directory?
- Is there any reason only 1 (my) IP would be added to this table using $wpdn->insert?
- WP rest api v2 posts filter by ‘search’ & ‘category_name’ not working
- Order of Operation for these three hooks
- How to disable “Transform to” option in Gutenberg custom blocks
- save_post hook not triggered in WP v3.6.1
- Initial help with official “create a block” tutorial
- Can wp_list_comments output into variable?
- Plugin Development Output
- SMS registration and login [closed]
- Adding Second Plugin Author
- Securing/Escaping Output of file content – reading via fread() in PHP
- Run code once when block is created
- Customize WooCommerce my account dashboard through plugin
- Precaching WordPress posts with a ServiceWorker
- Shortcode returning localized HTML part
- Template directory in plugin
- WordPress Admin Login Custom Logo
- Woocommerce order empty items array
- Drawing the line between theme & plugin on large scale bespoke projects
- HowTo to add my rewrite rules at the beginning, redirect to the right page and flush the rules on plugin activation?
- Apply styles to blockquote element with the WYSIWYG editor
- Do I need to create an endpoint?
- How to find list of all functions bind to a particular hook from my plugin?
- Insert and read media from the WordPress library and call in the plugin
- How to create dynamic content with get_post_meta?
- How to trigger WooCommerce user profile edit change?
- Return raw image proxy for wordpress plugin
- Stop unauthorised file access
- Changed media upload path for plugin, but generates error & shows wrong url
- How to pass a more variable with page/subpage in Wordprees URL?
- Use a page as a template for a custom post type
- Dynamic sidebar areas not working on the Theme Customizer
- Plugin dev: How to multiply instances of a plugin in the same metabox?
- Merge Codes using redux framework
- Getting Plugin to read all script files
- WooCommerce adds a newline symbol (\n) between email recipients
- Upload to a specific media folder created by FileBird Lite
- Allow HTML in product attributes and variation for WooCommerce
- How do I modify the error code array used by “shake_error_codes” filter?