bp_admin_enqueue_scripts

Piggy back admin_enqueue_scripts action.

Description

bp_admin_enqueue_scripts( (string) $hook_suffix = '' ); 

Parameters (1)

0. $hook_suffix — Optional. (string) => ''
The current admin page, passed to admin_enqueue_scripts..

Usage

  1. if ( !function_exists( 'bp_admin_enqueue_scripts' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/admin/bp-core-admin-actions.php'; 
  3.  
  4. // The current admin page, passed to 
  5. // 'admin_enqueue_scripts'. 
  6. $hook_suffix = ''; 
  7.  
  8. // NOTICE! Understand what this does before running. 
  9. $result = bp_admin_enqueue_scripts($hook_suffix); 
  10.  

Defined (1)

The function is defined in the following location(s).

/bp-core/admin/bp-core-admin-actions.php  
  1. function bp_admin_enqueue_scripts( $hook_suffix = '' ) { 
  2.  
  3. /** 
  4. * Fires inside the bp_admin_enqueue_scripts function. 
  5. * @since 1.7.0 
  6. * @param string $hook_suffix The current admin page, passed to admin_enqueue_scripts. 
  7. */