bp_get_document_attachment_image()

Return the document attachment.

Description

Return

(string) The document attachment url.

Source

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

function bp_get_document_attachment_image() {
	global $document_template;

	/**
	 * Filters the document image being displayed.
	 *
	 * @since BuddyBoss 1.4.0
	 *
	 * @param string The full image.
	 */
	if ( isset( $document_template->document->attachment_data->full ) ) {
		return apply_filters( 'bp_get_document_attachment_image', $document_template->document->attachment_data->full );
	} else {
		return apply_filters( 'bp_get_document_attachment_image', '' );
	}

}

Changelog

Changelog
Version Description
BuddyBoss 1.4.0 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.