bp_nouveau_get_hooked_member_meta()

Catch the content hooked to the do_action hooks in single member header and in the members loop.


Return Return

(string|false) HTML Output if hooked. False otherwise.


Source Source

File: bp-templates/bp-nouveau/includes/members/functions.php

function bp_nouveau_get_hooked_member_meta() {
	ob_start();

	if ( ! empty( $GLOBALS['members_template'] ) ) {
		/**
		 * Fires inside the display of metas in the directory member item.
		 *
		 * @since 6.0.0
		 */
		do_action( 'bp_directory_members_item_meta' );

	// It's the user's header
	} else {
		/**
		 * Fires after the group header actions section.
		 *
		 * If you'd like to show specific profile fields here use:
		 * bp_member_profile_data( 'field=About Me' ); -- Pass the name of the field
		 *
		 * @since 1.2.0
		 */
		do_action( 'bp_profile_header_meta' );
	}

	$output = ob_get_clean();

	if ( ! empty( $output ) ) {
		return $output;
	}

	return false;
}


Top ↑

Changelog Changelog

Changelog
Version Description
6.0.0 Replace wrongly positioned bp_directory_members_item with bp_directory_members_item_meta
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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