[ Index ] |
PHP Cross Reference of BuddyPress |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * BP Friends component CSS/JS. 4 * 5 * @package BuddyPress 6 * @subpackage FriendsScripts 7 * @since 9.0.0 8 */ 9 10 // Exit if accessed directly. 11 defined( 'ABSPATH' ) || exit; 12 13 /** 14 * Registers the script to manage the dynamic part of the Friends widget/block. 15 * 16 * @since 9.0.0 17 * 18 * @param array $scripts Data about the scripts to register. 19 * @return array Data about the scripts to register. 20 */ 21 function bp_friends_register_scripts( $scripts = array() ) { 22 $scripts['bp-friends-script'] = array( 23 'file' => plugins_url( 'js/friends.js', __FILE__ ), 24 'dependencies' => array( 25 'bp-dynamic-widget-block-script', 26 'wp-i18n', 27 ), 28 'footer' => true, 29 ); 30 31 return $scripts; 32 } 33 add_filter( 'bp_core_register_common_scripts', 'bp_friends_register_scripts', 9, 1 );
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Nov 21 01:00:57 2024 | Cross-referenced by PHPXref 0.7.1 |