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
- Insert text programmatically in WordPress Gutenberg Editor
- Javascript function defined in view.js not reachable from save.js
- How to move custom gutenberg block controls from settings to styles tab?
- How to use useSelect to retrieve the currently default fontFamily?
- Event when Modal is opened/visible
- Gutenberg Static blocks: viewScript doesn’t import css for frontend?
- useBlockProps() nests wrapper with class name inside block wrapper in the editor
- Is It Possible to Use the Block Editor’s Notification Feature to Send Another Notification After the Post Is Saved?
- How to add a javascript snippet to the footer that requires jQuery
- How to use PanelColorSettings in custom Gutenberg block?
- 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)
- Hook the Keydown Event in the TinyMCE Post Editor
- 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
- 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?
- 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
- Best way to save custom css for an block
- ResizableBox with RangeControl not working
- jQuery does not enqueue for my purpose… (before an inline script in the footer)
- WP Plugin Running before jQuery
- How to only load css for used blocks on frontend
- Additional classes `undefined` after saving post in Gutenberg
- How do you submit a Gutenberg plugin?
- Enqueuing scripts and styles in custom plugins
- Invalid hook call on save, not edit when using swiper slider
- How to save post meta as an array in Gutenberg?
- Need help about understand api, wp, $ syntax in WordPress plugin script
- WordPress Gutenberg InnerBlocks renderAppender not showing with template
- Set Button in PluginDocumentSettingPanel Content (WordPress Gutenberg)
- Console errors in 6.0-RC1 Widget screen
- How to use attributes in competent of Gutenberg
- WPGut – Updating failed and shortcode?
- Fixed: Console.log twice in the edit function
- Gutenberg – Call google map render function in save after DOM has been rendered
- Where do I hook to have the server do something in PHP on block attribute change?
- Dynamically modify content added to table via javascript
- Javascript scroll eventHandler only working when I’m logged in in WordPress
- How to get access the ID of all posts of custom post type in Gutenberg editor
- Pass javascript result to shortcode executer function
- Add language localisation to javascript alert?
- Remove from a div by class name from post page if post author role is not administrator
- Enqueue script not working
- Why does this fail: Disabling plugins enqueue_script() in functions.php
- How do I access the contents of WordPress Classic editor in admin area with JavaScript?
- How react js and other Javascript Technologies works on WordPress plugin?
- Trigger a JavaScript function based on the data fetched from Woo commerce hook
- Add custom data-attribute to core Gutenberg block within an template
- Remove Gutenberg Buttons Block
- Multiple php files in dynamic gutenberg block
- How to detect when the user clicks the publish/update button in Gutenberg Editor
- Output HTML Tags In Gutenberg Block
- Can you nest columns/column in a gutenberg custom template?
- Can we write custom DOM manipulation inside edit.js file while developing custom Gutenberg block?
- User set default settings for a Block in Site Editor