BP_Admin::enqueue_scripts()
Add some general styling to the admin area.
Description Description
Source Source
File: bp-core/classes/class-bp-admin.php
public function enqueue_scripts() {
wp_enqueue_style( 'bp-admin-common-css' );
// BuddyPress Hello.
if ( 0 === strpos( get_current_screen()->id, 'dashboard' ) && ! empty( $_GET['hello'] ) && $_GET['hello'] === 'buddypress' ) {
wp_enqueue_style( 'bp-hello-css' );
wp_enqueue_script( 'bp-hello-js' );
wp_localize_script( 'bp-hello-js', 'bpHelloStrings', array(
'pageNotFound' => __( 'Sorry, the page you requested was not found.', 'buddypress' ),
'modalLabel' => __( 'Hello BuddyPress', 'buddypress' ),
) );
}
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.6.0 | Introduced. |