bp_get_media_author()

Return the Media author name.

Description

Return

(int) The Media author name.

Source

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

function bp_get_media_author() {
	global $media_template;

	if ( isset( $media_template ) && isset( $media_template->media ) && isset( $media_template->media->user_id ) ) {
		$author = bp_core_get_user_displayname( $media_template->media->user_id );
	}

	/**
	 * Filters the Media author name being displayed.
	 *
	 * @since BuddyBoss 1.5.3
	 *
	 * @param int $id The Media author id.
	 */
	return apply_filters( 'bp_get_media_author', $author );
}

Changelog

Changelog
Version Description
BuddyBoss 1.5.3 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.