bws_enqueue_custom_code_css

The Google Sitemap by BestWebSoft bws enqueue custom code css function.

Description

bws_enqueue_custom_code_css(); 

Usage

  1. if ( !function_exists( 'bws_enqueue_custom_code_css' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-sitemap-by-bestwebsoft/bws_menu/bws_functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bws_enqueue_custom_code_css(); 
  7.  

Defined (1)

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

/bws_menu/bws_functions.php  
  1. function bws_enqueue_custom_code_css() { 
  2. global $bstwbsftwppdtplgns_options; 
  3.  
  4. if ( ! isset( $bstwbsftwppdtplgns_options ) ) 
  5. $bstwbsftwppdtplgns_options = ( function_exists( 'is_multisite' ) && is_multisite() ) ? get_site_option( 'bstwbsftwppdtplgns_options' ) : get_option( 'bstwbsftwppdtplgns_options' ); 
  6.  
  7. if ( ! empty( $bstwbsftwppdtplgns_options['custom_code'] ) ) { 
  8. $is_multisite = is_multisite(); 
  9. if ( $is_multisite ) 
  10. $blog_id = get_current_blog_id(); 
  11.  
  12. if ( ! $is_multisite && ! empty( $bstwbsftwppdtplgns_options['custom_code']['bws-custom-code.css'] ) ) 
  13. wp_enqueue_style( 'bws-custom-style', $bstwbsftwppdtplgns_options['custom_code']['bws-custom-code.css'] ); 
  14. elseif ( $is_multisite && ! empty( $bstwbsftwppdtplgns_options['custom_code'][ $blog_id ]['bws-custom-code.css'] ) ) 
  15. wp_enqueue_style( 'bws-custom-style', $bstwbsftwppdtplgns_options['custom_code'][ $blog_id ]['bws-custom-code.css'] );