0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

buddypressのアクティビティにphpで書き込む

Posted at

ユーザーのアクティビティに

そのユーザーの更新をするには
***bp_activity_post_update()***を使う

$args = array( 
    'content' => 'コメント', 
    'user_id' => 2 
); 

$activity_id = bp_activity_post_update( $args  );

グループのアクティビティに

***groups_post_update()***を使う


$arr = array( 
    'content' => "てす", 
    'group_id' =>11 );
$aa = groups_post_update($arr);

ただ、それだけ

アクティビティに書けるだけです。
もっといろいろあるはずだけれど、今回はここまで

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?