What are you hooking public function enqueue_scripts()
on to?
You might need to use
add_action( 'admin_enqueue_scripts', array( 'Your_Class', 'enqueue_scripts' ) );
Related Posts:
- How to include jQuery and JavaScript files correctly?
- jQuery in header or footer
- lodash dependency in a Gutenberg plugin
- Use js script from one plugin in another plugin
- creating elements/innerblocks via rangecontrol
- Looking for callback function after Gutenberg is rendered?
- Can’t get JS code to work with shortcode
- How do I add a javascript file to all admin pages via a plugin?
- Gutenberg: useDispatch is not a function – @wordpress/data included
- Make a list with header and subtext in Gutenberg blocks
- Gutenberg – What is the best way to save/update post meta?
- How to run a external JavaScript file on wp-admin if admin, and other if normal user?
- Where to call wp_enqueue_script in a plugin with custom template?
- How to prevent UNDO on guternberg block editor
- Do I have to worry about useState causing a re-render?
- Creating a custom Gutenberg block with columns
- Gutenberg: import dependency or assign from global variable?
- How to control an elements classes from multiple Gutenberg sidebar controls?
- should i be checking for jquery before enqueing it in a plugin
- Custom Plugin – CSS works, JS doesn’t
- Developing the save function in Gutenberg blocks
- Gutenberg – is it ok to load dependencies multiple times?
- Preventing double loading JS scripts (like React) when developing for Gutenberg
- Getting incorrect filepath inside custom block front-end output using @wordpress/create-block tutorial
- Trigger function on Remove block or add new block in Gutenberg JavaScript
- Rerender core Templates with with ToggleControl but it doesnt recognize block type
- HTMLCollection not counting right in editor? / for loop not working on elements in DOM
- What happens/fires when you select a block in the editor?
- How to use setAttributes outside of the edit function return
- why is apiFetch throwing Unhandled Promise Rejection: TypeError: Object is not a function
- Reading plugin settings in esnext wordpress block
- Append php file to footer
- Add a Script button in W3 Total Cache plugin not working due to conflicting jQuery version
- How can i add insertion point between inner blocks in my custom block like core blocks
- Reinitiate Gutenburg’s blocks using javascript
- How to add a javascript snippet to the footer that requires jQuery
- check if Gutenberg is currently in use
- Load js/css files only on specific admin UI pages
- Can I use the wp media uploader for my own plugin?
- Customizing the 3.5 “Add Media” popup (Backbone.js)
- Managing two editable fields in gutenberg
- How to save block attributes when the output doesn’t change
- Gutenberg ServerSideRender is deprecated, how to work with new wp.serverSideRender component?
- How do I only load js on the post-new.php and post.php pages in admin?
- How to disable “Transform to” option in Gutenberg custom blocks
- Passing select control value to block
- Saving data from block editor to the database
- How do I store information in a dynamic block in WordPress?
- How to Load Plugin JS in theme’s footer section
- Initial help with official “create a block” tutorial
- How do I dynamically render an InnerBlock inside a dynamic block?
- Gutenberg blocks not getting styled on back end
- conditionally load javascript & CSS for do_action() calls from plugin
- What stylesheets are available in core?
- Enqueue WordPress plugin scripts below all other JS
- How to add Internationalization in WordPress using Javascript/React?
- Run code once when block is created
- WP Gutenberg Blocks – How to limit first/root blocks
- ResizableBox with RangeControl not working
- Gutenberg table block with Bootstrap .table class
- How can I remove the WordPress-Version (?ver=5.x) from my plugin
- Enqueue script globally
- Loading Modernizr (or other JavaScript libraries) for use in a plugin
- Run JavaScript validation script on form submit in plugin
- unable to wp_enqueue_script(‘suggest’);
- How to add template colors to custom block options in WordPress Gutenberg editor sidebar?
- How to use apiFetch to get author information in Gutenberg properly?
- Gutenberg blocks error: Each child in a list should have a unique “key” prop
- How to add a panel/box/widget/are/screen to the right side of edit post/page confusion
- Service Worker Uncaught (in promise) DOMException
- How to properly package a block plugin
- Setting global block attribute value
- About a programming language starts with [closed]
- Should I put my plugin javascript inline?
- Enqueue ONLY Plugin Styles and Scripts
- WordPress Plugin Authoring question about jquery and css
- Custom Block Not Shown in Block Inserter
- Query String Filtering API
- How to extend SelectControl with data from my theme
- Add default value from selection
- Gutenberg block breaks when showing new data
- Where to save Gutenberg plugin data?
- Load script on frontend from widget plugin
- Gutenberg component in a plugin admin
- AJAX call of function containing javascript which is not loaded (Plugin development)
- Add custom html classes to gutenberg wrapper
- Filterable posts using categories
- Ajax Response Error | just getting error as the response
- Enqueue Script in custom plugin before other
- Gutenberg and custom blocks messed up pagespeed score. What did I wrong?
- Gutenberg text field validation
- Undo operation not working in Rich text [Gutenberg]
- How to get the value entered in the input field in wordpres
- Help interpreting @wordpress/create-block-tutorial-template usage error
- How can I add a custom button to the post editor?
- Block Development: hamburger module throwing error in save function
- Insert meta-description into Yoast-SEO input-field via JavaScript
- Adding a navigation with wp_nav_menu() to a custom block in the site editor
- Why isn’t custom sidebar panel not showing up in the Gutenberg Editor?
- REST API error in block editor for custom templates