It’s all about poor typo, I put one extra parameter ''
before dependency parameter:
wp_enqueue_script( $plugin_short_slug, plugins_url() . "https://wordpress.stackexchange.com/" . $plugin_slug . '/js/' . $plugin_slug . '.js', '', array('jquery'), '', true);
should be:
wp_enqueue_script( $plugin_short_slug, plugins_url() . "https://wordpress.stackexchange.com/" . $plugin_slug . '/js/' . $plugin_slug . '.js', array('jquery'), '', true);
Now my script properly loads in footer.
Related Posts:
- What is the difference between $post_id and get_the_ID()?
- Where to store plugin settings fields
- How can I add an option to the Page Template list from a Plugin?
- How can I add columns to the post edit listing to show my custom post data?
- What’s the best method for emptying an option created with the Settings API?
- template_include (overriding default plugin templates via current theme)
- Using composer for dependency management in plugindevelopment
- What is nonce and how to use it with Ajax in WordPress? [duplicate]
- Update exisiting site to 3.5 release candidate
- Why does do_action pass a blank string as the first parameter if no $arg is set?
- add_filter and remove_filter added before and after wp_query
- What is the difference between strip_tags and wp_filter_nohtml_kses?
- How to get shortcode to work inside a foreach loop called within a shortcode?
- How can I hook into existing WordPress Bulk actions?
- Scheduled event does not run at midnight
- How to bundle a plugin with a theme, or vice versa
- WordPress Media mime type filter problem 4.0
- creating elements/innerblocks via rangecontrol
- How to check if current static page is frontpage from admin plugin
- Woocommerce add custom button to backend order table
- Earliest WP Hook to Safely and Reliably Redirect
- What is rich_editing?
- How Can I setup WP CLI on Windows development machine running AMPPS?
- Use theme constants in plugin?
- How to avoid creating first submenu page that is same as menu page?
- How can I display an error message after post has been saved?
- What method to use to call a REST API?
- Is it possible to delay execution of shortcode output callback?
- GET parameters interfere with my plugin settings
- What’s the best place to hire a freelance (contract) WordPress developer? [closed]
- Why my database table not created on activation?
- wp_enqueue_script + wp_enqueue_style Since When
- Resizing Images for a Gallery-Plugin?
- Which themes do you use to test compatibilities with your plugin [closed]
- How to debug a unit test for a WordPress plugin, which uses wordpress-test?
- Is there any way to allow a plugin to write over a previous version?
- How do i validate data entered in a meta box so that only floats can be entered in a field?
- Adding functions to hooks from within a class
- What filters to call to modify the output of the entire page?
- get_current_screen() return null
- Tried in different ways but sidebar not working?
- How to Create a Simple Related Posts Plugin
- How to run a function on plugin’s options page?
- What stylesheets are available in core?
- Help With Rewrite_Rules For a Custom Plug-In
- Theme Install using a Custom Repository
- How to add plugin version update option in plugin row action?
- Activate User in Code (BuddyPress+bbpress)
- wp_filesystem put_contents issue with owner/group
- error ‘The package could not be installed. No valid plugins were found.’
- Search: how to extend the existing search to include a custom table
- Plugin development: delete options when updating to a new version
- Widget options are not updated
- Custom code for WordPress dynamic menu
- Gutenberg table block with Bootstrap .table class
- Translate MCE button text/tooltip in custom plugin
- Do blocks replace plugins in WordPress 5?
- Can’t change the style of a submit input type? [closed]
- How to get all queries’s results after they have executed?
- Show dynamic list of products from custom api of another database under same host
- Hide custom post type by user roles
- Odd map_meta_cap $args on post edit — sometimes integer, sometimes string
- How can I create a custom plugin that allows anonymous users to signup without registering?
- why update option is not working?
- How to call a function using a shortcode [closed]
- How to add template colors to custom block options in WordPress Gutenberg editor sidebar?
- WP: Search and replace in DB programmatically
- How to silent ‘Attempting a database schema change is discouraged.’?
- Update a user profile via frontend
- How add default term meta to prevent an error?
- Get images / media attached to a page by page ID
- How to create two custom post types when plugin is activated?
- Plugin architecture to pull from API & create dynamic content on WP site?
- Plugin admin page stylesheet doesn’t work
- Why is $_POST empty when saving custom Meta Box?
- How to remove dynamic-css
- Wp_List_Table is showing as no class found named wp list table
- 403 error rest_’cookie_invalid_nonce’ on API Request
- Insert, update or remove data from database (usermeta)
- WordPress Jquery with heade and footer sritp plugin
- I cant add is_admin control to plugin
- Append php file to footer
- AJAX call of function containing javascript which is not loaded (Plugin development)
- Allow user to add the php code in wp_mail()
- Hiding WordPress REST endpoints from public viewing using Basic Authentication
- Plugin setting page – update_option problem
- WordPress Plugin Update Process
- Ajax functionality not being called under wordpress plugin
- Rewriting URLs with a query string
- Registration form Plugin… Email confirmation
- Add a description/hint field in the admin page of a plugin
- How to display posts list on my plugin page?
- Saving multiple fields as array
- Can’t add images in wordpress to my page – button isn’t clickable
- WordPress pre-build slider
- Gutenberg and custom blocks messed up pagespeed score. What did I wrong?
- Gutenberg text field validation
- I don’t understand how symlinks in plugin work
- Undo operation not working in Rich text [Gutenberg]
- Programmatically creating posts based on external JSON feed (asynchronously)