将 wordpress 可视化编辑器添加到站点页面 [英] Add wordpress visual editor to site pages

查看:31
本文介绍了将 wordpress 可视化编辑器添加到站点页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用 php 代码将 wp 可视化编辑器添加到某个页面?我当然知道如何向页面添加 smth,但不知道如何显示可视化编辑器

Is it possible to add wp visual editor to some page using php code? Of course I know how to add smth to page, but have no idea how to display visual editor

推荐答案

您可以使用以下方法在任何页面上输出可视化编辑器:

You can output a visual editor on any page using:

<?php wp_editor( '', 'editor-id' ); ?>

完整的使用信息可以在这里找到:https://codex.wordpress.org/Function_Reference/wp_editor

Full usage info can be found here: https://codex.wordpress.org/Function_Reference/wp_editor

这篇关于将 wordpress 可视化编辑器添加到站点页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆