bp_get_document_folder_date()

Return the document date created.

Description

Return

(string) The document date created.

Source

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

2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
function bp_get_document_folder_date() {
    global $document_folder_template;
 
    if ( isset( $document_folder_template ) && isset( $document_folder_template->folder ) && isset( $document_folder_template->folder->date_modified ) && (int) strtotime( $document_folder_template->folder->date_modified ) > 0 ) {
        $date = $document_folder_template->folder->date_modified;
    } elseif ( isset( $document_folder_template ) && isset( $document_folder_template->folder ) && isset( $document_folder_template->folder->date_created ) && (int) strtotime( $document_folder_template->folder->date_created ) > 0 ) {
        $date = $document_folder_template->folder->date_created;
    }
 
    $date = date_i18n( bp_get_option( 'date_format' ), strtotime( $date ) );
 
    /**
     * Filters the document date modified being displayed.
     *
     * @since BuddyBoss 1.4.0
     *
     * @param string The date modified.
     */
    return apply_filters( 'bp_get_document_folder_date', $date );
}

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.