If the theme does not implement wp_footer()
a lot of functionality that depends on it will break. For this reason, implementing wp_footer()
is required to get your theme accepted in the WP.org directory. So it is not unreasonable to break when wp_footer()
is missing.
Be sure to add a notice in your FAQ that you require wp_footer()
in the theme. You can also add a check in your plugin admin page: checking for the existence of wp_footer()
can be as simple as loading a page with a special $_GET
variable in the background, which will trigger a hook that outputs some control code in wp_footer
, and reading the result to see whether this control code can be found.
Related Posts:
- Enqueue scripts in footer
- How to enqueue an external Javascript file to Frontpage footer
- ajaxurl not defined on front end
- How to add a javascript snippet to the footer that requires jQuery
- How to enqueue JavaScripts in a plugin
- How to include jQuery and JavaScript files correctly?
- Load js/css files only on specific admin UI pages
- Get list of scripts / styles and show file which enqueued them
- jQuery in header or footer
- Enqueue script only when shortcode is used, with WP Plugin Boilerplate
- How do I conditionally enqueue script for CPT single post type with plugin?
- Where to enqueue stylesheets for plugin?
- When is it too late to call the action wp_enqueue_scripts?
- Use js script from one plugin in another plugin
- Script won’t load via plugin class
- Plugin Loading Scripts and Styles on Every Page – Even when not being used
- Can’t get JS code to work with shortcode
- How do you output enqueued scripts to an admin page?
- How do I add a javascript file to all admin pages via a plugin?
- Multisite plugin development and wp_enqueue_script
- is_page() function doesnt working
- How to avoid loading same script twice?
- How to run a external JavaScript file on wp-admin if admin, and other if normal user?
- Execute Hook on the footer or header after activating a plugin
- Loading scripts with wp_register_script and wp_enqueue_script
- Adding Dropbox dropin js using wp_enqueue_script
- Where to call wp_enqueue_script in a plugin with custom template?
- Replacing Scripts in Admin Load_Scripts
- Is there a way to ensure plugin script loads before another script?
- conditionally load javascript & CSS for do_action() calls from plugin
- What stylesheets are available in core?
- How to enqueue or include json file to a plugin
- How to load library scripts in admin from plugins in noConflict wrapper?
- jQuery does not enqueue for my purpose… (before an inline script in the footer)
- How can I remove the WordPress-Version (?ver=5.x) from my plugin
- Enqueue script globally
- WP Plugin Running before jQuery
- wp_localize_script is not adding a global variable for javascript
- Loading Modernizr (or other JavaScript libraries) for use in a plugin
- should i be checking for jquery before enqueing it in a plugin
- How to import the css in the plugin admin area?
- My stylesheets are not enqueuing
- Plugin Development – Class Constructor Not Firing wp_enqueue_style action hook
- Custom Plugin – CSS works, JS doesn’t
- Enqueuing scripts and styles in custom plugins
- How to enqueue scripts in right way in a plugin?
- unable to wp_enqueue_script(‘suggest’);
- making a plugin that moves other plugins wp_head actions to wp_footer
- How to make my shortcode load scripts and styles, from within the plugin?
- How do I get rid of my inclusion race-condition on wp_enqueue_script
- Using function from enqueued .js file in theme in plugin?
- Enqueue a file that’s not js or css
- Enqueueing common php scripts in a plugin
- Enqueue scripts inside a class in a plugin
- Enqueue ONLY Plugin Styles and Scripts
- wp_enqueue_scripts in a plugin’s class
- WordPress Plugin Authoring question about jquery and css
- Loading Images from Javascript on the Front End
- Add default value from selection
- Is “document loaded” different on admin side than public side?
- plugin css is not being applied to the page
- Adding External Gmap JS to WordPress
- How do I ensure I can loop through every enqueued script and CSS?
- Append php file to footer
- How to avoid conflict if a plugin already have included open library?
- AJAX call of function containing javascript which is not loaded (Plugin development)
- Javascript not being loaded only in custom taxonomy template
- Add new header/footer on landing page with plugin
- Ajax Response Error | just getting error as the response
- Add a Script button in W3 Total Cache plugin not working due to conflicting jQuery version
- Enqueue scripts based on site.
- Enqueue script not working
- Script work on non logged in user but not work for logged in user?
- Why does this fail: Disabling plugins enqueue_script() in functions.php
- Enqueue Script in custom plugin before other
- How to only Load scripts on variable products page
- $wpdb->insert_id
- Remove profile picture option (and other things) from profile.php (in admin)
- Adding custom code into header.php using a plugin
- On plugin deactivation hide its shortcode
- Find source of notice / warning / errors efficiently
- Use wp_set_post_terms() instead of wp_insert_post()
- Create a free scripts and styles template within a plugin
- Elementor custom Query with ACF fields to show matching woocommerce products custom fields
- How to enqueue style in WordPress plugin from theme files?
- pre_get_post alter current post id
- Remove Default Blogroll Links via Plugin script
- Filter posts in pre_get_posts order by meta value date (desc or asc)
- How to display the category id along with category name on categories list?
- Activate / Deactivate plugin
- Serial Number from custom table not appear in woocommerce_email_before_order_table action
- Author Meta in Author URL Link
- get_comment_meta() for a filter hook in a plugin
- form does not generate $_POST request
- Callback function quicktags that uses variable in start tag
- Font Awesome stopped showing icons, shows &# text instead [closed]
- WordPress Plugin Tool Tip Helpers
- How to remove a class [closed]
- How to display .ptm file in my WP site without JAVA
- ‘useSate’ error when using React on the frontend in custom block plugin