That looks like it is an error due to TinyMCE (editorremov
I believe) not being loaded yet. Either hook to the admin_footer
action instead of admin_head
(interestingly you have declared the in_footer
option as true
and it is still not working) or declare the editorremov
dependency when enqueuing your script:
wp_enqueue_script( 'features', plugin_dir_url( __FILE__ ) . 'features.js', array( 'editorremov' ), 'false', true );
Related Posts:
- Adding Custom Text Patterns in the WP 4.5 Visual Editor
- How can the tinyMCE dom be manipulated (offical API does not seem to work)?
- Bridge WordPress Media API with custom tinyMCE plugin [closed]
- Asynchronously render shortcodes in TinyMCE visual editor
- Add a select option of shortcodes like dropdown in tinymce
- Translate MCE button text/tooltip in custom plugin
- How to close tinymce inline popup
- Add custom TinyMCE 4 Button, Usable since WordPress 3.9-beta1
- Add self-closing shortcode button to TinyMCE in WP 4.6
- How to provide translations for a WordPress TinyMCE plugin?
- API to trigger prompt on leaving page
- Hook the Keydown Event in the TinyMCE Post Editor
- Utilize TinyMCE hyperlink chooser outside of TinyMCE
- Making a custom widget that includes a tinymce and works in Site Origin Page Builder
- How can I find the ‘public absolute’ path of a file?
- WYSIWYG editor in WP 3.2 plugin
- Show dialog box in TinyMCE plugin and use WordPress php functions in it
- the_editor() function
- TinyMCE 4.7.11 custom styles using styleselect – what does the ‘attributes’ argument do?
- Rich text editor settings persist throughout all rich text editors
- WP Editor Issue in Backend
- Open modal when user clicks on span in visual editor
- tinymce.get() returns error after ajax request
- TinyMCE editor turns white on Biographical info [closed]
- Inserting code to HTML view from a pop up initiated from visual view
- Moving/dragging a metabox removes TinyMCE’s content
- Can I Hook Into the TinyMCE Insert/Edit Link Button to Use Shortlink For Post?
- How can I allow the user to press enter without creating a new element in the editor?
- How to display TinyMCE HTML view?
- Multiple TinyMCE on button click is initialized and appended but why only last one is writeable?
- TinyMCE 4.7.11 – Enable hidden WordPress core plugins? (referencing a wp-includes from plugin.php)
- How to get values from Tinymce visual editor popup?
- TinyMCE how to add css when inputing a text
- get_option() is undefined in TinymceWindowManager
- Issue with iframe in TinyMCE
- Why if i enqueue the tinymce script i get undefined error
- How to hide/remvoe unnecessary field/section in post edit section ( Dashboard )
- Fatal error: Uncaught Error: Using $this when not in object context
- functions won’t fire after I converted my code from procedural code to OOP
- Custom non-template page on front end fails to render
- Add custom parameter for custom user role
- Shortcode content is not showing. Only the [shortcode-tag] is showing
- Post is uncatagorized in publish_post action
- get_queried_object_id combined with wp_redirect gets wrong id
- Stuck on a 504 error
- When does global/main code of plug execute?
- Using WordPress Boilerplate (WPBP) for WP Multisite Plugin
- How to prevent wp_insert_post from creating a new post every second?
- Error Connecting to Database WHEN Installing WordPress on XAMPP [Tried All the Usual Stuff] (Pics Included)
- WordPress Filesystem create CSS-File – get Shortcode ID for Name
- WordPress5.2.3: Better File Download Plugin validation issue
- How do I make secure API calls from my WordPress plugin?
- esc_attr() on hard coded string
- How do I ensure I can loop through every enqueued script and CSS?
- Gutenberg component in a plugin admin
- Creating a return url for getting data from external api
- Always hide a page from the menu
- WordPress discards PNG file when uploading plugin file
- Hook for validating and rejecting frontend image upload
- What is the source of the $post_id in a hook argument?
- WordPress Fatal error: Uncaught Error: Call to undefined function dbDelta()
- Custom Admin Plugin – Injecting repeatable select fields (add, remove) into an Ordered List
- Does hooking into a plugin action / filter override the plugin’s function for that hook?
- Overriding the template files using a plugin for all themes
- Nested Hooks with do_action for performance reasons – safe/necessary?
- WordPress custom url without using any of the custom tags given
- Counter not working correctly
- Generate Static Page to Show Search Results/Detail for API
- User meta query using Wildcard
- How do I use a plugin to swap out the template file for a custom post type?
- WordPress with React: Saving and Using Data Collected with fetch
- use a (Polymer) web component within a plugin (or theme)?
- Custom Post not Deleting on Uninstall
- Scripts/styles not loading on cloned WP Site when logged in
- how to add security questions on wp-registration page and validate it
- Multiple instances of $opt_name in redux framework
- Don’t print customizer styles when no setting has been used
- Initializing rest endpoint issue
- Using AJAX to submit and return data inside the WordPress Plugin Boiler Plate framework
- Append php file to footer
- Integrate separate web app inside wordpress [closed]
- How to avoid conflict if a plugin already have included open library?
- Can’t get wpColorPicker to work in a widget
- WordPress OOP get current user question?
- Plugin Activation Causes wp_register errors
- Load custom translation in custom plugin fails
- Add quick edit functionnality to plugin table
- How to filter an action inside class in MemberPress plugin?
- AJAX call of function containing javascript which is not loaded (Plugin development)
- XMLHttpRequest to open PHP file responds with Missing Page
- Including content into an add_shortcode() function
- Get the current post/page URL with plain permalinks
- Hide / show settings field based on other field’s value
- How to integrate plugins into block editor
- Group By in a Metaquery
- Pre-populated WooCommerce checkout fields: dropdown fields issue
- Using the same class across multiple functions
- Hide post by ‘post_category’
- jQuery dependent script ignores $in_footer bool and doesn’t work in header
- Woocommerce Product finder feature on home page