firsttec_remove_gallery_css

Deprecated way to remove inline styles printed when the gallery shortcode is used.

Description

(string) firsttec_remove_gallery_css( $css ); 

This function is no longer needed or used. Use the use_default_gallery_style filter instead, as seen above.

Returns (string)

The gallery style filter, with the styles themselves removed.

Parameters (1)

0. $css
The css.

Usage

  1. if ( !function_exists( 'firsttec_remove_gallery_css' ) ) { 
  2. require_once '/functions.php'; 
  3.  
  4. // The css. 
  5. $css = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = firsttec_remove_gallery_css($css); 
  9.  

Defined (1)

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

/functions.php  
  1. function firsttec_remove_gallery_css( $css ) { 
  2. return preg_replace( "#<style type='text/css'>(.*?)</style>#s", '', $css );