bp_get_the_members_invitation_action_links( array|string $args = '' )

Return the action links for the current invitation.


Parameters Parameters

$args

(array|string) (Optional)

  • 'before'
    (string) HTML before the links.
  • 'after'
    (string) HTML after the links.
  • 'sep'
    (string) HTML between the links.
  • 'links'
    (array) Array of links to implode by 'sep'.
  • 'user_id'
    (int) User ID to fetch action links for. Defaults to displayed user ID.

Default value: ''


Top ↑

Return Return

(string) HTML links for actions to take on single notifications.


Source Source

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

	function bp_get_the_members_invitation_action_links( $args = '' ) {
		// Set default user ID to use.
		$inviter_id = isset( $args['inviter_id'] ) ? $args['inviter_id'] : bp_displayed_user_id();

		// Parse.
		$r = wp_parse_args( $args, array(
			'before' => '',
			'after'  => '',
			'sep'    => ' | ',
			'links'  => array(
				bp_get_the_members_invitation_resend_link( $inviter_id ),
				bp_get_the_members_invitation_delete_link( $inviter_id )
			)
		) );

		// Build the links.
		$retval = $r['before'] . implode( $r['sep'], $r['links'] ) . $r['after'];

		/**
		 * Filters the action links for the current invitation.
		 *
		 * @since 8.0.0
		 *
		 * @param string $retval HTML links for actions to take on single invitation.
		 * @param array  $r      Array of parsed arguments.
		 */
		return apply_filters( 'bp_get_the_members_invitation_action_links', $retval, $r );
	}


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.