当前位置: 首页>>代码示例>>PHP>>正文


PHP BP_Groups_Member::delete_invite方法代码示例

本文整理汇总了PHP中BP_Groups_Member::delete_invite方法的典型用法代码示例。如果您正苦于以下问题:PHP BP_Groups_Member::delete_invite方法的具体用法?PHP BP_Groups_Member::delete_invite怎么用?PHP BP_Groups_Member::delete_invite使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BP_Groups_Member的用法示例。


在下文中一共展示了BP_Groups_Member::delete_invite方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: groups_delete_invite

function groups_delete_invite($user_id, $group_id)
{
    global $bp;
    $delete = BP_Groups_Member::delete_invite($user_id, $group_id);
    if ($delete) {
        bp_core_delete_notifications_by_item_id($user_id, $group_id, $bp->groups->id, 'group_invite');
    }
    return $delete;
}
开发者ID:novichkovv,项目名称:candoweightloss,代码行数:9,代码来源:bp-groups-functions.php

示例2: groups_delete_invite

/**
 * Delete a group invitation.
 *
 * @param int $user_id  ID of the invited user.
 * @param int $group_id ID of the group.
 *
 * @return bool True on success, false on failure.
 */
function groups_delete_invite($user_id, $group_id)
{
    if (!BP_Groups_Member::delete_invite($user_id, $group_id)) {
        return false;
    }
    /**
     * Fires after the deletion of a group invitation.
     *
     * @since 1.9.0
     *
     * @param int $user_id  ID of the user whose invitation is being deleted.
     * @param int $group_id ID of the group whose invitation is being deleted.
     */
    do_action('groups_delete_invite', $user_id, $group_id);
    return true;
}
开发者ID:jasonmcalpin,项目名称:BuddyPress,代码行数:24,代码来源:bp-groups-functions.php

示例3: groups_delete_invite

/**
 * Delete a group invitation.
 *
 * @param int $user_id ID of the invited user.
 * @param int $group_id ID of the group.
 * @return bool True on success, false on failure.
 */
function groups_delete_invite($user_id, $group_id)
{
    if (!BP_Groups_Member::delete_invite($user_id, $group_id)) {
        return false;
    }
    do_action('groups_delete_invite', $user_id, $group_id);
    return true;
}
开发者ID:sdh100shaun,项目名称:pantheon,代码行数:15,代码来源:bp-groups-functions.php


注:本文中的BP_Groups_Member::delete_invite方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。