bp_document_mime_type( $attachment_id )

Return the extension of the attachment.

Description

Parameters

$attachment_id

(Required)

Return

(mixed|string)

Source

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

1498
1499
1500
1501
1502
1503
1504
function bp_document_mime_type( $attachment_id ) {
 
    $type = get_post_mime_type( $attachment_id );
 
    return $type;
 
}

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.