wp-editor

How to disable Gutenberg / block editor for certain post types?

北城余情 提交于 2021-01-20 15:22:12
问题 WordPress added Gutenberg / block editor in its 5th version and it's enabled by default for Post and Page post types. It might be enabled by default for all custom post types in close future so as a WordPress developer I want to know how to disable this editor for my own custom post types? I want to keep classic editor for the post types that I registered from my plugins or themes. 回答1: It's possible to simply disable the editor using a WordPress filter. WordPress 5 and Higher If you want to

How to disable Gutenberg / block editor for certain post types?

旧街凉风 提交于 2021-01-20 15:19:07
问题 WordPress added Gutenberg / block editor in its 5th version and it's enabled by default for Post and Page post types. It might be enabled by default for all custom post types in close future so as a WordPress developer I want to know how to disable this editor for my own custom post types? I want to keep classic editor for the post types that I registered from my plugins or themes. 回答1: It's possible to simply disable the editor using a WordPress filter. WordPress 5 and Higher If you want to

WP logout when upload on front

本小妞迷上赌 提交于 2020-01-22 04:00:27
问题 My theme have a submit post page and I configure user capabilities for everyone to upload. But no one can able to upload. And when i clicked "add media" button and select any file for upload, my current account is logging out automatically. Where at, after user try upload, Visitors to the position falls. What do you think? Why logout? 回答1: Why WordPress Keeps Logging Out? WordPress sets a cookie in your browser to authenticate a login session. This cookie is set for the WordPress URL stored