Activity_Favorite::create( $args )

Add an activity item as a favorite for a user.


Description Description

Top ↑

OPTIONS OPTIONS

: ID of the activity to add an item to.
: Identifier for the user. Accepts either a user_login or a numeric ID.
## EXAMPLES
$ wp bp activity favorite add 100 500 Success: Activity item added as a favorite for the user.
$ wp bp activity favorite create 100 user_test Success: Activity item added as a favorite for the user.


Source Source

File: cli/src/activity-favorite.php


			

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.