PHP Класс RTMediaBuddyPressActivity, rtMedia

Автор: faishal
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( )
activity_after_media_comment ( $params ) Create BuddyPress activity when user comment on media
activity_after_media_like ( $obj ) Create BP activity when user like and delete associated activity when user remove like.
bp_activity_deleted_activities ( $activity_ids_deleted )
bp_activity_posted_update ( $content, $user_id, $activity_id )
bp_after_activity_post_form ( )
bp_get_activity_parent_content ( $content )
bp_groups_posted_update ( $content, $user_id, $group_id, $activity_id )
bp_prefetch_activity_object_data ( $activities ) To add dynamic activity actions for translation of activity items
comment_sync ( $comment_id, $param )
delete_comment_sync ( $activity_id, $comment_id )
manage_user_last_activity_update ( $content, $user_id, $activity_id ) Update bp_latest_update user meta with lasted public update.
non_threaded_comments ( )
override_allowed_tags ( $activity_allowedtags )
remove_activity_after_media_comment_delete ( $comment_id ) Remove activity when comment on media is deleted
rtm_bp_activity_permalink_access ( boolean $args ) : boolean To check user has access to view single activity
rtm_bp_activity_user_can_delete ( boolean $can_delete, object $activity ) : boolean To check whether user can delete the activity or not

Описание методов

__construct() публичный Метод

public __construct ( )

activity_after_media_comment() публичный Метод

Create BuddyPress activity when user comment on media
public activity_after_media_comment ( $params )
$params array

activity_after_media_like() публичный Метод

Create BP activity when user like and delete associated activity when user remove like.
public activity_after_media_like ( $obj )
$obj RTMediaLike

bp_activity_deleted_activities() публичный Метод

public bp_activity_deleted_activities ( $activity_ids_deleted )

bp_activity_posted_update() публичный Метод

public bp_activity_posted_update ( $content, $user_id, $activity_id )

bp_after_activity_post_form() публичный Метод

bp_get_activity_parent_content() публичный Метод

public bp_get_activity_parent_content ( $content )

bp_groups_posted_update() публичный Метод

public bp_groups_posted_update ( $content, $user_id, $group_id, $activity_id )

bp_prefetch_activity_object_data() публичный Метод

To add dynamic activity actions for translation of activity items
public bp_prefetch_activity_object_data ( $activities )
$activities

comment_sync() публичный Метод

public comment_sync ( $comment_id, $param )

delete_comment_sync() публичный Метод

public delete_comment_sync ( $activity_id, $comment_id )

manage_user_last_activity_update() публичный Метод

Update bp_latest_update user meta with lasted public update.
public manage_user_last_activity_update ( $content, $user_id, $activity_id )
$content
$user_id
$activity_id

non_threaded_comments() публичный Метод

override_allowed_tags() публичный Метод

public override_allowed_tags ( $activity_allowedtags )

remove_activity_after_media_comment_delete() публичный Метод

Remove activity when comment on media is deleted
public remove_activity_after_media_comment_delete ( $comment_id )
$comment_id

rtm_bp_activity_user_can_delete() публичный Метод

To check whether user can delete the activity or not
С версии: 4.0.2
public rtm_bp_activity_user_can_delete ( boolean $can_delete, object $activity ) : boolean
$can_delete boolean Whether the user can delete the item.
$activity object Current activity item object.
Результат boolean $can_delete