[英]How to add post editor in sub menu page in wordPress?
i want to make submenu page in wordpress where user can add content in same way like title and below that editor basically i need editor in my sidebar to add and delete its content. 我想在wordpress中制作子菜单页面,其中用户可以像标题一样添加内容,在编辑器下面我基本上需要编辑器添加和删除其内容。 strong text
强文
You can use these two lines where you want the editor. 您可以在需要编辑器的位置使用这两行。
$editor_id = 'mycustomeditor'; // Your id for the editor.
wp_editor( $content, $editor_id );
Codex reference https://codex.wordpress.org/Function_Reference/wp_editor 法典参考https://codex.wordpress.org/Function_Reference/wp_editor
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.