BP_Attachment::includes()
Include the WordPress core needed files.
Description
Source
File: bp-core/classes/class-bp-attachment.php
public function includes() {
foreach ( array_unique( $this->required_wp_files ) as $wp_file ) {
if ( ! file_exists( ABSPATH . "/wp-admin/includes/{$wp_file}.php" ) ) {
continue;
}
require_once( ABSPATH . "/wp-admin/includes/{$wp_file}.php" );
}
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 2.3.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.