bp_get_the_members_invitations_resend_url( int $user_id )

Return the URL used for resending a single invitation.


Parameters Parameters

$user_id

(int) (Required) The user ID.


Top ↑

Return Return

(string)


Source Source

File: bp-members/bp-members-template.php

	function bp_get_the_members_invitations_resend_url( $user_id = 0 ) {
		// Set default user ID to use.
		$user_id = 0 === $user_id ? bp_displayed_user_id() : $user_id;
		$link = bp_get_members_invitations_list_invites_permalink( $user_id );

		// Get the ID.
		$id = bp_get_the_members_invitation_property( 'id' );

		// Get the args to add to the URL.
		$args = array(
			'action'        => 'resend',
			'invitation_id' => $id
		);

		// Add the args.
		$url = add_query_arg( $args, $link );

		// Add the nonce.
		$url = wp_nonce_url( $url, 'bp_members_invitation_resend_' . $id );

		/**
		 * Filters the URL used for resending a single invitation.
		 *
		 * @since 8.0.0
		 *
		 * @param string $url     URL used for deleting a single invitation.
		 * @param int    $user_id The user ID.
		 */
		return apply_filters( 'bp_get_the_members_invitations_resend_url', $url, $user_id );
	}


Top ↑

Changelog Changelog

Changelog
Version Description
8.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.