Changeset 13004 for trunk/src/bp-groups/bp-groups-cssjs.php
- Timestamp:
- 07/14/2021 06:45:11 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-groups/bp-groups-cssjs.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-cssjs.php
r12745 r13004 64 64 ); 65 65 } 66 67 /** 68 * Registers a new script to manage the dynamic part of the Dynamic groups widget/block. 69 * 70 * @since 9.0.0 71 * 72 * @param array $scripts Data about the scripts to register. 73 * @return array Data about the scripts to register. 74 */ 75 function bp_groups_register_widget_block_scripts( $scripts = array() ) { 76 $scripts['bp-dynamic-groups-script'] = array( 77 'file' => plugins_url( 'js/dynamic-groups.js', __FILE__ ), 78 'dependencies' => array( 79 'bp-dynamic-widget-block-script', 80 'wp-i18n', 81 ), 82 'footer' => true, 83 ); 84 85 return $scripts; 86 } 87 add_filter( 'bp_core_register_common_scripts', 'bp_groups_register_widget_block_scripts', 9, 1 );
Note:
See TracChangeset
for help on using the changeset viewer.