我可以使用wp_editor()
用于添加自定义后期使用的函数wp_insert_post()
我的插件中的函数(带有post\\u content参数)。
我需要可以从中保存数据wp_editor()
作用
如何获得输出?
非常感谢。
我可以使用wp_editor()
用于添加自定义后期使用的函数wp_insert_post()
我的插件中的函数(带有post\\u content参数)。
我需要可以从中保存数据wp_editor()
作用
如何获得输出?
非常感谢。
$content = \'\';
$editor_id = \'mycustomeditor\';
wp_editor( $content, $editor_id );
/** If you want to get data wp_editor value from POST **/
print_r($_POST[\'mycustomeditor\']);
我在一个简单的插件中使用wp编辑器,但我遇到了一个问题,第一次点击提交按钮时,数据库中的内容是空白的。<?php $editor_id = \'mycontent\'; wp_editor($content, $editor_id ); ?> 因此,我尝试使用以下内容提醒内容:if (j(\".wp-content-wrap\").hasClass(\"tmce-active\")){ alert(