bp_activity_privacy_add_css

Load css files.

Description

bp_activity_privacy_add_css(); 

Usage

  1. if ( !function_exists( 'bp_activity_privacy_add_css' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress-activity-privacy/includes/bp-activity-privacy-cssjs.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_activity_privacy_add_css(); 
  7.  

Defined (1)

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

/includes/bp-activity-privacy-cssjs.php  
  1. function bp_activity_privacy_add_css() { 
  2. // global $wp_styles; 
  3.  
  4. // $srcs = array_map('basename', (array) wp_list_pluck($wp_styles->registered, 'src') ); 
  5. // if ( !in_array('font-awesome.css', $srcs) && !in_array('font-awesome.min.css', $srcs) ) { 
  6. wp_enqueue_style( 'bp-activity-privacy-font-awesome-css', plugins_url( 'css/font-awesome/css/font-awesome.min.css' , __FILE__ ));  
  7. wp_enqueue_style( 'bp-activity-privacy-css', plugins_url( 'css/bp-activity-privacy.css' , __FILE__ ));  
  8.  
  9. if( !bp_ap_show_privacy_levels_label() ) { 
  10. $hide_privacy_label_css = ".customSelectInner { display: none !important; }"; 
  11. wp_add_inline_style( 'bp-activity-privacy-css', $hide_privacy_label_css ); 
  12.