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
function bp_document_mime_type( $attachment_id ) {
$type = get_post_mime_type( $attachment_id );
return $type;
}
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.