How to disable visual editor for multiple pages by ID

I have this code to disable the visual editor on one page. However I need to add additional ID’s

add_filter( ‘user_can_richedit’, ‘disable_my_richedit’ );
function disable_my_richedit( $default ) {
global $post;
if ( $post->ID == x ) // change the post ID
return false;
return $default;}

Read more here:: How to disable visual editor for multiple pages by ID

Leave a Reply

Your email address will not be published. Required fields are marked *