I believe the helper you’re looking for (assuming we’re not dealing with a custom post type) is:
<?php remove_post_type_support('page', 'editor'); ?>
When dealing with a custom post type you can exclude ‘editor’ from the ‘supports’ parameter to initialize the post type without the editor window.
Finally, if you are trying to disable the editor only when a specific page template is selected from the “Template” drop down menu, your best bet is likely a Javascript/jQuery approach to HIDE “#postdivrich” after an onChange event is triggered by “#page_template”. Just remember to SHOW when the other templates that do support the editor are selected.
Related Posts:
- How do I add Bootstrap and LESS to my migrated WordPress site?
- functions.php inject inline css
- Removing default image size list in Media Box
- How to restrict actions and filters “properly” by conditions
- Logout/login redirect CSS issue
- syntax for remove_filter in parent theme with class
- How to add CSS style sheet dynamically in wordpress
- Simple/basic use of get_current_screen
- Is it possible to be more page/post specific with admin_enqueue_script?
- Theme options WP Editor
- Enqueue styles after a plugin
- Replace Archive Widget Link Text
- Exclude Empty Child Categories in Menu
- Best way to programatically add “rel” attributes to page and post images
- add_filter priority problem
- How to add background image control to page admin controls?
- Clean-up script tags
- Remove function or filter
- Super simple shortcode not working
- Add class or ID to any WordPress function
- How to filter out shortcode when displaying the_excerpt() in the loop?
- Adding multiple taxonomy filters to functions.php
- Last updated date function
- Enqueue Style Only On Certain Pages Not Working
- Why does the ‘wp_nav_menu’ function work only until a menu is created?
- How to set default archive image without overriding first attached image? [closed]
- Only let plugin add actions to wp_head & wp_footer on single posts
- How to make custom column Admin>Users sortable?
- Get Current Post ID in functions php, meta query filter
- Output and filter data from a XML url
- change the url paths in the stylesheet dynamically
- What did I do wrong in my functions code, that will not change the “Get New Password” text to “Send It”?
- How to filter $content in shortcode function
- Please Explain the Importing Process of Multiple Stylesheets for Child Themes
- Add Element as a Filter to the_content
- Custom styles.css sheet for visual editor
- How can I add a filter for specific categories on functions.php?
- Retrieve a value from Yoast SEO to use to set a default twitter card image honoring overrides
- Is my code correct to enqueue CSS on a specific page?
- Can’t properly set the_title add_filter to show short_URL
- Filter an WordPress Function in (general-template.php)
- Not all CSS elements transferring via parent to child?
- Filter nav menu items HTML tags and wrap inner text with span
- How can I add a class to a nav li depending on URL?
- Modify gform_other_choice_value for specific form and specific field in Gravity Forms
- Set “woocommerce_is_purchasable” to false for specific “$product->is_stock_status”
- How to add custom li item to wordpress menu
- How to insert class in each list of categories?
- Parent theme styles overriding child theme CSS [closed]
- I can’t add CSS with functions.php
- This code works, but the way I integrated it is breaking the media uploader. How can I integrate it properly?
- Problem with images URL after filter applying
- remove_action not working, even after changing priority [duplicate]
- Replace header image on all other pages but home – URL issue
- Add a class to post if it has been recently updated
- Page Template Won’t Load Correct CSS File
- search form leads to 404
- how to add_filter to non hook function
- define css class in functions.php
- Completely Disable WordPress RSS Feeds
- how can I add filter in specfic field in my website?
- Overwrite text in a complicated filter hook
- How to add HTML into error message
- Save_post – Warning: Cannot modify header information
- custom error message for empty username and password using authenticate filter not working
- How to reference different css (bootstrap) stylesheets for the header and body of a page?
- Add #primary at the end of navlink permalinks on single posts
- remove_filter function to unhook twentysixteen parent theme function
- Can we have conditional CSS styling?
- only update titles of single posts
- Post content overflows on my mobile phone
- Stylesheet does not load despite functions.php
- OOP Switch statement with array as parameter
- function class doesnt work
- Help using ShortCodes to style whole chunks of the post
- How can I automatically delete comments that contain a URL?
- Appending „read more” to the excerpt conditionally
- How to add class dynamically from templates
- how to remove a tag in the_category function
- function replace_text for entire page
- Adding a class to the body of an inactive site using multisite
- Conditionally apply css for a specific template part
- ACF Filter return value
- Graphic before title – Specific Category
- How to automatically add custom classes to headings in content area
- How to make an If Else on Excerpt Filter
- Regex works in regexr, but not if I filter content [closed]
- Retrieve a custom form field modified by a filter
- functions.php filters not applied in AJAX call
- Changing the color of post title [closed]
- Settings in functions.php used by a plugin
- Random text changing to weird icons in both admin & front end
- functions.php / replacing div’s with new ones?
- Can’t change excerpt length and more tag
- Force resize for all video content
- Way of getting queried loop before the query with a filter hook?
- Image width issue in IE [closed]
- Trying to get this function to show below the content
- How do I make my child theme’s CSS update when I save it?
- Warning: call_user_func_array() expects parameter 1 to be a valid callback