Home › Forums › Front-end Issues › Use textarea instead of TinyMCE for post_content › Reply To: Use textarea instead of TinyMCE for post_content
Thanks Krendel for the answer.
For current version (I use 5.0.7), you need to use _post_content.
add_filter('acf/get_valid_field/type=wysiwyg', 'my_get_valid_field_post_content');
function my_get_valid_field_post_content( $field )
{
if ( $field['name'] == '_post_content' )
$field['type'] = 'textarea';
return $field;
}
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.