Once I got the syntax correct, @janh was correct. wp_footer has to be called BEFORE all_admin_notices. I was trying to call in wp_footer from all_admin_notices. Simple but frustrating! Thank you @jahn for all of your help!
Related Posts:
- Where is the best place to use add_filter
- When can you get current page ID and initialize hooks right after?
- Using the ‘draft_to_publish’ hook (post status transition)
- Enqueue style inside shortcode but its loaded at the bottom of page (before footer scripts)
- How can I limit functionality in one version of a plugin?
- Shortcode display outside the div
- Good tools for locating hooks in a wordpress page/admin interface/blog post?
- Can a plugin add to header/footer/body content?
- Is it possible to add an action to the currently running action?
- Action on post publish
- How to add inline css/js inside a shortcode
- How to call bind function in wordpress actions or hooks
- How to prevent action in ajax request, when in admin side?
- template_redirect not being called when using ajax
- add action wp_head not working
- What are the benefit in adding hook in the init() hook?
- add_action in functions.php, do_action in plugin?
- add action for displaying posts using a shortcode
- ‘wp_login’ action hook not working with wp-login.php file
- Any hook for pre-plugin-update -either bulk or single plugin update
- wordpress plugin is not activating from widget
- When to load auto-login code?
- How to get all of the activate_plugin action parameters?
- How to check current user before all actions and filters?
- Get Time Taken By Each Action Hook in WordPress
- Are functions in main plugin file called before function bound to register_activation_hook runs?
- Custom plugin init action causing general slowness
- Inject HTML meta tag inside wordpress tag using add_shortcode
- Add action to fire when a published post is updated
- How to pass variables to a function argument using add_action [duplicate]
- Submit Form data to another page via Ajax (WordPress Way)
- Does using `add_action( ‘init’…` cause performance issues?
- Hook for page Request?
- Custom CSS not being added by plugin
- How to use add_action for multiple instances of the same class
- How to append new form elements in “Add New” form of Users in WordPress admin panel?
- I cannot include a file in my plugin settings page
- Why do actions with class and public method don’t fire __construct()
- The function called on the wp head hook becomes null
- Nested Actions and Filters
- Passing function into add_action always returns the first argument
- Get post content inside plugin class method
- Remove action added in plugin class from theme
- Plugin Hook: Get posts
- Is it possible to cancel a post status transition?
- How wordpress plugin hooks works? [duplicate]
- is_plugin_active function doesn’t exist
- How to call a plugin function from index.php
- Rewriting every url
- Where can I find a schema of wordpress plugin core architecture?
- How can I make my custom shortcode work in a Custom HTML Widget?
- How Does WordPress Uninclude/Deactivate A Plugin?
- Which hook callback has priority if both plugin and theme use the same hook?
- Ajax call doesn’t work in frontend but it’s working in backend (when I’m logged in)
- How can I add a custom meta value on file upload?
- Admin-ajax.php is dying “0” without processing function
- Add a Custom Permalink option in the Permalink Admin Screen?
- How to remove an Ajax action
- Allow Facebook to preview posts before published
- publish_post plugin hook doesn’t always pass $post->post_content
- Let user subscribe to specific categories
- Best way to hook a custom url?
- How to cancel WordPress’ action/filter when using OOP with anonymous callback
- What is the best way to mimic a search query within a plugin
- Programatically download a plugin
- Do action only on certain front end pages?
- Call to a member function have_posts() on a non-object on normal loop
- Archive – same title for the first two posts
- Creating plugin using simple_html_dom parser?
- Not able to add option in Sub-Menu under page
- Create a navbar filter that filters by a custom field
- wp.media javascript issue with on select
- jQuery for custom plugin not working with Divi theme
- Creating shortcodes in plugin
- How to get post ID with hooks publish_post, new_to_publish, etc
- Change plugin name on WordPress repo
- Admin AJAX doesn’t work in plugin admin page – Even though code is copied verbatim from WordPress Codex
- Are plugins instantiated on every request to WordPress?
- Plugin Development – Functions or Hooks?
- adding a button to the media uploader
- How do I add $_SESSION[”] to my wordpress page?
- Plugin Activation Error – The plugin generated 22 characters of unexpected output during activation
- Search users with custom meta data
- Calling a class method instantiated by ajax call in wordpress [closed]
- override function from my plugin [closed]
- Woocommerce plugin – How to create two versions of the same plugin with slightly different implementation for different users
- How to Join wp_posts & wp_postmeta table using custom query
- Use localized plugin name and description even when the plugin is disabled
- Cron task gets removed from the schedule
- “Enable Media Replace” plugin does not update serialized object in WPMeta
- How to Unhook actions/filters in within Class in plugin
- One time call to external API in widget
- Call function when save setting/option in custom admin page
- Plugin to Delete All Posts Monthly
- mailjet plugin – extend functionnalities and reuse api
- how to repeat taxonomy in different places on wordpress
- Can anyone tell me why I can’t edit a plugin when it is installed without having to re-install?
- Creating fields in the database
- Meta box not displaying on the plugin page
- public custom posts not showing in my wordpress plugin