Wordpress 如何添加contenteditable属性并在我的帖子/页面上保存内容编辑状态?
我正在制作我的WordPress主题,我想做的是使用前端编辑方式编辑页面 我必须在我的帖子/页面上制作一个按钮,使用这行代码命名我自己的自定义按钮前端编辑器Wordpress 如何添加contenteditable属性并在我的帖子/页面上保存内容编辑状态?,wordpress,frontend,contenteditable,savechanges,Wordpress,Frontend,Contenteditable,Savechanges,我正在制作我的WordPress主题,我想做的是使用前端编辑方式编辑页面 我必须在我的帖子/页面上制作一个按钮,使用这行代码命名我自己的自定义按钮前端编辑器 add_action('media_buttons', 'add_my_custom_button'); function add_my_custom_button(){ $post = get_the_id(); echo '<a href="'.get_the_permalink().'" class="
add_action('media_buttons', 'add_my_custom_button');
function add_my_custom_button(){
$post = get_the_id();
echo '<a href="'.get_the_permalink().'" class="button button-primary">Front Editor</a>';
}
add_操作(“媒体按钮”、“添加我的自定义按钮”);
函数添加我的自定义按钮(){
$post=获取_id();
回声';
}
现在我想做什么