Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/10/2021 03:07:55 PM (5 years ago)
Author:
dcavins
Message:

Member Invites: Add "not allowed" message to invite send form.

BuddyPress Core will not allow you to access the send form
unless you have the bp_members_send_invitation
capability, so this message will generally not be accessed.
However, if a plugin wishes to allow access to the "send"
screen but prevent sending in order to display an error
message, this message will be used.

Props imath.

See #8139.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/includes/functions.php

    r12921 r12946  
    10911091                                'message' => __( 'Currently only your friends can invite you to groups. Uncheck the box to allow any member to send invites.', 'buddypress' ),
    10921092                        ),
    1093                         'member-invites-none'               => array(
     1093                        'member-invitations-help'           => array(
     1094                                'type'    => 'info',
     1095                                'message' => __( 'Fill out the form below to invite a new user to join this site. Upon submission of the form, an email will be sent to the invitee containing a link to accept your invitation. You may also add a custom message to the email.', 'buddypress' ),
     1096                        ),
     1097                        'member-invitations-none'           => array(
    10941098                                'type'    => 'info',
    10951099                                'message' => __( 'There are no invitations to display.', 'buddypress' ),
     1100                        ),
     1101                        'member-invitations-not-allowed'    => array(
     1102                                'type'    => 'error',
     1103                                /**
     1104                                 * Use this filter to edit the restricted feedback message displayed into the Send invitation form.
     1105                                 *
     1106                                 * @since 8.0.0
     1107                                 *
     1108                                 * @param string $value The restricted feedback message displayed into the Send invitation form.
     1109                                 */
     1110                                'message' => apply_filters(
     1111                                        'members_invitations_form_access_restricted',
     1112                                        __( 'Sorry, you are not allowed to send invitations.', 'buddypress' )
     1113                                ),
    10961114                        ),
    10971115                )
Note: See TracChangeset for help on using the changeset viewer.