You can avoid to declare that player is a dependency for your javascript file, the problem is that Jquery isn’t recognized. Change this line:
wp_enqueue_script( 'main', plugins_url( '/main.js' , __FILE__ ),array("jquery","player"),'0.0.3',true);
into this:
wp_enqueue_script( 'main', plugins_url( '/main.js' , __FILE__ ), ["jquery"] );
Also avoid to enqueue your script in the footer.
Related Posts:
- How to include code only on specific pages?
- Can someone please tell me what is wrong with my plugin?
- accessing wp.media api from a tinymce plugin
- Redirect to another page using contact form 7? [closed]
- Deactivate JS Script in Plugin Shortcode
- Executing Javascript in Plugin
- Load CSS files in header of Bones theme?
- Why does my custom plugin only function correctly once per page?
- JS working when used normally but not in wordpress
- Beginner question: Accessing js script in plugin
- PHP Deprecated: Non-static method should not be called statically
- Loading shortcode with ajax
- How to pass multiple values in shortcode?
- Why is the unrendered widget number `__i__` showing up in the JavaScript but not in the HTML?
- Calling function from within functions.php returns unwanted value
- How to Reload the Dashboard After Clicking Update in Quick-Edit?
- plugin shortcodes not working on custom theme- unsure how to fix
- Ajax call doesn’t work in frontend but it’s working in backend (when I’m logged in)
- Nested shortcodes
- White text on white background in TinyMCE when wp_editor is called in WP 3.9
- What’s the best plugin for allowing javascript in a post or page? [closed]
- How can I make the “Preview Post” button save and preview in the same window?
- Disable / Deregister all JS from all plugins
- Has anyone used require.js for handling plugin scripts?
- javascript onload calling a function of a plugin
- shortcodes displaying outside of content area with echo statement, not what I wanted [duplicate]
- Trying to count the total number of paragraphs inside a blog article
- How Can I Pass the Shortcode’s $atts Variable to the Plugin’s Javascript Function
- Shortcode is not working in homepage page template (custom front page)
- May i Use ShortCode in Template?
- JQuery not working in my plugin [closed]
- How to load plugin after page is loaded – pagespeed issues
- How can I create a custom shortcode that will return a custom post type by ID?
- AddToAny shortcode in the loop
- Making a Template for a CPT created by a plugin
- add image crop function like in wp customizer
- Calculate price and display on woocommerce product single page under price (simple price, variable price) [closed]
- How to edit content before post update
- Calling an attribute from a plugin shortcode
- wp.media javascript issue with on select
- WordPress + JavaScipt + AJAX + MySQL: insert query for form
- Advanced AJAX Page Loader ignores other JS code
- Creating shortcodes in plugin
- Visual Composer shortcode for child theme dir
- How to load wp_editor via AJAX
- WordPress 3.8.3. custom theme – sliders won’t load js/css files
- Create shortcode to echo javascript
- JavaScript in a PHP plugin
- Why shortcode always displayed after footer not in body
- Why am I unable to load scripts in head in plugin?
- Where to find the code used to render a page that has a shortcode and a template defined?
- How do I add some javascript validation to the admin interface form’s onsubmit?
- convert more tag to shortcode
- Shortcode does not expand in Facebook like
- How to generate an all in one WordPress New content, plugin and theme update report on a website? [closed]
- How use wp media upload liberary in react components?
- Override/ignore CSS from active theme as not to interfere with my custom CSS
- How to use template inside plugin shortcode with variables for big HTML code
- How to use custom Javascript code inside a plugin?
- JQuery needs to be defined in , but Gravity Forms is defining it in the
- How to rewrite URL and get the values?
- Shortcode and variable
- How can I achieve this, using shortcodes
- Code for unique user visit count on every page WordPress
- Creating New Dynamic Fields for a Certificate (Number Generation, Code Referencing, and more)
- Upload Javascript and json webpage to wordpress
- Can I add Short Code Of A Plugin In The Code Editor of WordPress?
- Get the link title attribute and send it google analytics as custom label via google tag manager using beehive pro for WordPress
- Calling PHP function with AJAX
- How to check if short code is present in template?
- How can I add a custom Javascript snippet to display my feedback in footer?
- front end editor creation for Restropress plug in – displaying information from a WP admin area, on a different URL
- How to add defer to WordPress Plugin javascript? [duplicate]
- Custom Field used to allow a Free Story; no longer works
- Create a form and have custom menu display based on user answers?
- How to solve Blocked a frame with origin from accessing a cross origin frame error in wordpress?
- Enabling plugin on specific pages and subpages
- WordPress show descriptions under images in gallery
- How to use information from the database in the front-end?
- Modify Plugin PHP Class in Child Theme – Correct Method
- How to add HTML to a template only when user is logged out/ not registered
- How to pass value to a plugins shortcode?
- Is it possible to get a shortcode generated by a plugin, then, using a function, create a new post using that shortcode?
- Hide some shortcodes on posts from back-end
- Trouble implementing python on WordPress
- How to display single arbitrary facebook post with a shortcode?
- Custom shortcode with dynamic rewrite
- Posting code inside the post instead of in the template file using shortcode
- apply_filters to content but ignore shortcodes
- Load css classes after using ajax calls
- How to tweak a plugin without preventing it from updating
- Integrate Razorpay quick payments plugin with contact form7 plugin
- Display HTML5 jQuery Audio Player On Front Page
- Defer parsing of JavaScript [duplicate]
- How do I put a word-press blog into my static site without installing wordpress on server?
- how to embed a crop feature for cropping images uploaded by the user
- how to show selected options drop down menu values in attributes field in after saving post.php
- Shortcode to do math with url variables
- How to get URL param for pagination in shortcode?
- Buffered output in chunks and shortcode – how do I achieve that?