bp_document_upload_dir_script( $pathdata )
Set bb_documents folder for the document upload directory.
Description
Parameters
- $pathdata
-
(Required)
Return
(mixed)
Source
File: bp-document/bp-document-functions.php
function bp_document_upload_dir_script( $pathdata ) { if ( empty( $pathdata['subdir'] ) ) { $pathdata['path'] = $pathdata['path'] . '/bb_documents'; $pathdata['url'] = $pathdata['url'] . '/bb_documents'; $pathdata['subdir'] = '/bb_documents'; } else { $new_subdir = '/bb_documents' . $pathdata['subdir']; $pathdata['path'] = str_replace( $pathdata['subdir'], $new_subdir, $pathdata['path'] ); $pathdata['url'] = str_replace( $pathdata['subdir'], $new_subdir, $pathdata['url'] ); $pathdata['subdir'] = str_replace( $pathdata['subdir'], $new_subdir, $pathdata['subdir'] ); } return $pathdata; }
Changelog
Version | Description |
---|---|
BuddyBoss 1.4.1 | 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.