bp_get_the_members_invitation_property( $property = 'id' )
Return the value for a property of the network invitation currently being iterated on.
Return Return
(int) ID of the current network invitation.
Source Source
File: bp-members/bp-members-template.php
function bp_get_the_members_invitation_property( $property = 'id' ) { switch ( $property ) { case 'id': case 'user_id': case 'item_id': case 'secondary_item_id': case 'invite_sent': case 'accepted': $value = 0; break; case 'invitee_email': case 'type': case 'content': case 'date_modified': $value = ''; break; default: // A known property has not been specified. $property = null; $value = ''; break; } if ( isset( buddypress()->members->invitations->query_loop->invitation->{$property} ) ) { $value = buddypress()->members->invitations->query_loop->invitation->{$property}; } /** * Filters the property of the network invitation currently being iterated on. * * @since 8.0.0 * * @param int|string $value Property value of the network invitation being iterated on. */ return apply_filters( 'bp_get_the_members_invitation_property_' . $property, $value ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
8.0.0 | Introduced. |