I can’t find any documentation that will allow adding any tag attributes to the wp_editor except for the id. You’ve got two options that I can think of. The first is to include a jQuery dependent (or not) javascript file which will add the required attribute to the editor textarea after the DOM is fully rendered.
The other option is to include a validation function either server side or browser side to make sure the data is present. I suggest this approach because the required attribute is not universally implemented across browsers.
Your code won’t work because there’s no apply_filter function that fires on $statement.
Related Posts:
- Hide old attachments from wp media library
- Detect a focus on wp_editor
- Add a wp editor to custom plugin and save data
- wp_editor and WPAlchemy messes up tags when updating
- Wp_editor doesn’t send the required data
- How to make the WordPress Editor not accept HTML?
- How to load WP_Editor JS files manually (with AJAX)?
- Having trouble customizing toolbar on wp_editor
- Is there a way to get wp_editor (tinymce) content?
- Loop through an array php
- WordPress refuses to send mail, “…your host may have disabled the mail() function”
- Only get_posts of certain post formats
- Remove “Insert from URL” link in Media upload – WP 3.5
- WordPress Admin Bar pushed Sticky Footer off the bottom of the page
- Does an activated plugin automatically mean its methods are available to other WP functions?
- Proper use of Output Buffer
- Hide custom image sizes from media library
- How do I override the Message-ID header of wp_mail function?
- Correct regex for wp_embed_register_handler
- How to implement WP_List_Table? WP_List_Table giving array instead of a value in listing table
- Why Can’t PHPUnit UnitTest My WordPress Website
- How does wordpress know which site to setup (on multisite)?
- Get the php template file from other theme folder
- wp_mail function timing out
- WordPress custom taxonomy description for each post?
- Jquery no more loading, load-scripts.php not found (404)
- queries inside of a class
- add_meta_boxes action with refresh on save
- Easy way to process search results before displaying
- Who’s job is it to load a plugin’s translated strings?
- Filtering the default avatar list
- Site Title and Tagline in Pagelines DMS Options Panel
- Getting movie and serial on actor page
- AJAX / Read More: multiple check_ajax_referer() and wp_create_nonce() not working independentely
- Match checkbox data with page title to show certain items
- Creating a WordPress form with a PHP script and default header
- Would manually deleting the dumping data fix a “#1062 – Duplicate entry ‘1’ for key ‘PRIMARY'” phpMyAdmin error?
- if post id matches these id’s then do this
- How to get a list of all users registered before a given date?
- API JSON Data in WordPress
- How to remove this function from the homepage?
- Using an Image Slider twice on the same page
- How to add a post or page tag to the list of classes appearing in the body tag’s class attribute?
- WP_User_Query order by meta_key that is an array
- Output data like WP’s plugin installer/updater
- How to create Sub Sub domain Multi User blogs?
- How To Change The Html of Products filtration sidebar in Woocommerce?
- Nested shortCode functions in the functions.php file
- How to display posts of specific category using a custom Query in WordPress?
- Create placeholder text for wordpress search box [closed]
- Show only IF not Google bot [closed]
- How the functions in WP are called in tags
- Is the outdated PHP mysql extension a requirement for WordPress 4.6?
- WordPress errors with PhP Upgrade
- PHP Code stuck in Cache [Memcached] [closed]
- Page navigation not showing even tho it should
- Woocommerce – remove product from category
- Get category name from custom loop and echo it once
- Differences when using the the_time and the_date functions
- Hide post if matches current month and year
- jQuery .each to get post meta and subtract from a sum
- How to make “more” or “continue reading” links on excerpts nofollow?
- Cannot get media type from ‘x-mapp-php5’
- Adding Custom Forms
- ACF page while loop breaks footer while loop
- create a select input with menus created on a custom options page
- How can I export posts with featured images, without download them
- Custom filter in admin edit custom post type responding with invalid post type?
- Displaying the Month and Year that a page was Created?
- Static variable and add_rewrite_rule?
- Fatal Error relating to sessions.php
- How to change home or site url using action hooks or filter?
- How to access global variable $menu inside a class function
- Parse error syntax error unexpected t_string [closed]
- Sort query_posts for Parent Pages to menue order or the count?
- Working with wordpress plugin and theme templates structures
- Woocommerce product variation backorder
- Calculating a large number of MYSQL queries as customshort codes, slow
- Status 400 for AJAX POST Request with admin-ajax.php
- Is it possible to use Data URI image to set a post thumbnail?
- Singelton class does not work, multiple initialization on page reload
- How to limit the number of forgot password reset attempts in WordPress?
- WordPress Configuration with SELinux on CentOS 8
- Generate YouTube image thumbnail in a Gutenberg block – ACF + Timber
- How to upload a file to a folder named after the user_id via plugin
- AJAX pagination, update current page
- Error on wp_default_style After upgrade to php 7
- WooCommerce: How can I get orders with a custom ID in order meta data object?
- adjust section according to country?
- Cannot execute php files in wp-content
- Replace part of a parent-theme customizer in the child-theme
- how to retrieve a value if a checkbox is checked
- Customize position of social icons in upme plugin [closed]
- What is the alternative to “ when it comes to calling Media (image) files in the ‘attachment.php’ file?
- Two queries for a WP_User_Query search work perfectly apart, but not together
- Modify function to print tags/categories/exclude tags/categories/ number of posts
- Accessing an image folder inside public web directory
- Search not showing all results
- Media Upload , file name changed automatically
- Change tinyMCE editor to allow marked content when pasting from Word