BP_REST_Activity_Endpoint:: get_activity_favorite_count (intactivity_id美元)
获得最喜欢的活动数。
描述
参数
- activity_id美元
-
(int)(必需)活动id。
返回
(int |混合)
源
文件:bp-activity /类/ class-bp-rest-activity-endpoint.php
Public function get_activity_favorite_count($activity_id) {if(空($activity_id)) {return;} $fav_count = bp_activity_get_meta($activity_id, 'favorite_count', true);返回(!空($fav_count) ?$fav_count: 0);}