BP_Admin::enqueue_scripts()
Add some general styling to the admin area.
Description
Source
File: bp-core/classes/class-bp-admin.php
public function enqueue_scripts() {
wp_enqueue_style( 'bp-admin-common-css' );
// Hello BuddyBoss
if ( 0 === strpos( get_current_screen()->id, 'dashboard' ) && ! empty( $_GET['hello'] ) && $_GET['hello'] === 'buddyboss' ) {
wp_enqueue_style( 'bp-hello-css' );
wp_enqueue_script( 'bp-hello-js' );
}
// Hello AppBoss
if ( 0 === strpos( get_current_screen()->id, 'dashboard' ) && ! empty( $_GET['hello'] ) && $_GET['hello'] === 'appboss' ) {
wp_enqueue_style( 'bp-hello-css' );
wp_enqueue_script( 'bp-hello-js' );
}
wp_enqueue_script( 'bp-fitvids-js' );
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 1.6.0 | BuddyPress 1.6.0 |
| BuddyBoss 1.0.0 Added support for Hello BuddyBoss App | 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.