我使用下面的代码将前端编辑添加到我的帖子/页面中。当按下更新/保存按钮时,我将如何保存帖子内容?
$post_id = get_the_ID();
$settings = array(
\'wpautop\' => true,
\'media_buttons\' => true,
\'wpautop\' => true,
\'tinymce\' => true,
\'quicktags\' => true,
\'textarea_rows\' => 18
);
$post = get_post($post_id, \'OBJECT\');
wp_editor($post->post_content, \'epicpagecontent\', $settings );
<input type="submit" name="submit" id="submit" value="Update">