0
我想从自定义页面发布评论到“网站范围活动”页面。我一直在寻找解决方案,但没有任何工作。Buddypress - 从自定义页面发布到侧面活动
如何使用下面的自定义基本脚本发布图片和评论?
<?php
if (isset($_POST["submitToActivity"])) {
$arrayPost = [$_POST["imgUrlString"],$_POST["comment-user"] ];
add_post_type_support($arrayPost, 'buddypress-activity');
echo "$UserName Posted a new comment";
}
?>
<form method="post" name="sendToActivity">
<label>Url Img</label>
<input type="text" id="imgUrlString" name="imgUrlString" />
<label>Comment</label>
<input type="text" id="comment-user" name="comment-user" />
<input type="submit" name="submitToActivity" id="submitToActivity">
</form>