Sunday , September 8 2024

How to Set the Default Editor to Visual or HTML in WordPress

Did you know that you can set the default editor in the WordPress post editor screen? Simply add this to your theme’s functions.php file:

For Visual set as default:

1
add_filter( 'wp_default_editor', create_function('', 'return "tinymce";') );

For HTML set as default:

1
add_filter( 'wp_default_editor', create_function('', 'return "html";') );

editor

About Ngo Thang IT

Check Also

Hướng dẫn tạo mã CSR và Private Key trong PHP

Để tạo được chứng chỉ SSL chúng ta cần có CSR và Private Key, trong …

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Đăng Ký Nhận Tin Qua Email

Nhận thông tin bổ ích về WordPress, Hosting, Thủ thuật website, Download miễn phí....và các phần quà hấp dẫn qua email.

* là bắt buộc