bp_document_update_folder_modified_date( int $folder_id )
This function will rename the folder name.
Description
Parameters
- $folder_id
-
(Required)
Return
(bool|int)
Source
File: bp-document/bp-document-functions.php
function bp_document_update_folder_modified_date( $folder_id = 0 ) {
global $wpdb, $bp;
if ( 0 === $folder_id ) {
return false;
}
$q = $wpdb->query( $wpdb->prepare( "UPDATE {$bp->document->table_name_folder} SET date_modified = %s WHERE id = %d", bp_core_current_time(), $folder_id ) ); // db call ok; no-cache ok;
if ( false === $q ) {
return false;
}
return $folder_id;
}
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.