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
- Is it ever okay to include inline CSS in plugins?
- Is it mandatory to use $wpdb->prefix in custom tables
- add_action hook for completely new post?
- Is there a hook for when you switch themes?
- Problems after wp_set_password() containing an apostrophe
- product-attribute-slug-is-too-long-28-characters-max
- Front-End Form Submission in Shortcode
- Confusion on WP Nonce usage in my Plugin
- Add media and attach images to pages
- Why cant the WP Filesystem API read googlefonts.json?
- Show comments fields in two columns
- How to determine if the current file is loaded in a plugin or in a theme?
- How to convert this cURL to wp_remote_get?
- Which action is triggered when a theme was modified?
- Check if someone is editing a post (this content is currently locked)
- WordPress setting with select – where is my mistake?
- How can I create a plugin that changes the title color of a website?
- Two functions utilizing registration_errors filter
- Issue plugin commands in admin settings page
- Creating a shortcode, but getting tied up with OOP and Classes?
- Adding custom fields to WordPress nav menus
- add_shortcode() not working inside of function
- How to add and remove a page
- “dashboard”-named PHP file doesn’t get included
- How to Upload Images From a Folder (Not WP_Uploads)
- What’s wrong with this post__not_in argument?
- Plugin uninstall function is not working
- Loading custom js file on the admin page through plugin
- First and last name fields not filled when using wp_insert_user
- I am unable to save my data from a form
- Check if post belongs to any category
- What’s wrong with my usage of add_filter
- Preventing double loading JS scripts (like React) when developing for Gutenberg
- Can calling wp_enqueue_style in wp_iframe apply the stylesheet to everything not just the iframe?
- Copied files from plugin to theme not working
- wp_ prefix changed. What is the way to change so any prefix is understood?
- How to call function from another plugin?
- List categories with descriptions via plugin
- Will a plugin able to know is_user_logged_in?
- Widget instance options not showing correctly
- Create Woocommerce product without creating api credentials
- var(–text-color) in style.scss works once but not twitch
- How Place a Custom Form Fields in a specific location on the User Profile Page?
- Access to the template file of a plug-in
- Custom plugin foreach wp_insert_post not working
- `registration_errors` filter doesn’t seem to be called
- How to grab data after wp user search is complete
- Disabling Yoast, All-in-One, and Rank Math on Certain Pages within a Plugin
- Stuck on a 504 error
- When does global/main code of plug execute?
- Override theme’s WooCommerce file
- How and when would I implement some code which would take data from one part of the Db and put it in another?
- Displaying settings information in a table
- Do you see any problems (mainly security-related) with how I’ve used wp_ajax_* actions?
- How to use get_pages( ) correctly with ‘child_of’ to replace page with child page
- Problem with Poedit [closed]
- Insert plugin html content to a specific spot in the frontpage
- Is Explicit Versioning a better alternative to Semantic Versioning for wordpress?
- Checking if the query is empty does not work
- Remove default wordpress roles
- What is the meta_query key name for the woo product average rating? [closed]
- how to catch a data from a array in WordPress
- Why my admin-ajax url returns 0 even after adding echo and die() at the end of function?
- External api call using wordpress