bp_nouveau_messages_enqueue_styles( array $styles = array() )
Enqueue styles for the Messages UI (mentions).
Description
Parameters
- $styles
-
(Optional) The array of styles to enqueue.
Default value: array()
Return
(array) The same array with the specific messages styles.
Source
File: bp-templates/bp-nouveau/includes/messages/functions.php
function bp_nouveau_messages_enqueue_styles( $styles = array() ) {
if ( ! bp_is_user_messages() ) {
return $styles;
}
return array_merge( $styles, array(
'bp-nouveau-messages-at' => array(
'file' => buddypress()->plugin_url . 'bp-activity/css/mentions%1$s%2$s.css',
'dependencies' => array( 'bp-nouveau' ),
'version' => bp_get_version(),
),
'select2' => array(
'file' => buddypress()->plugin_url . 'bp-core/css/select2.min.css',
'dependencies' => []
)
) );
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 3.0.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.