bp_nouveau_media_register_scripts( array $scripts = array() )
Register Scripts for the Media component
Description
Parameters
- $scripts
-
(Optional) The array of scripts to register
Default value: array()
Return
(array) The same array with the specific media scripts.
Source
File: bp-templates/bp-nouveau/includes/media/functions.php
function bp_nouveau_media_register_scripts( $scripts = array() ) {
if ( ! isset( $scripts['bp-nouveau'] ) ) {
return $scripts;
}
return array_merge( $scripts, array(
'bp-nouveau-media' => array(
'file' => 'js/buddypress-media%s.js',
'dependencies' => array( 'bp-nouveau' ),
'footer' => true,
),
'bp-nouveau-media-theatre' => array(
'file' => 'js/buddypress-media-theatre%s.js',
'dependencies' => array( 'bp-nouveau' ),
'version' => bp_get_version(),
'footer' => true,
),
) );
}
Changelog
| Version | Description |
|---|---|
| BuddyBoss 1.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.