mangomatic_clean_assets

The MangoMatic (Responsive) mangomatic clean assets function.

Description

mangomatic_clean_assets( $content ); 

Parameters (1)

0. $content
The content.

Usage

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

Defined (1)

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

/functions.php  
  1. function mangomatic_clean_assets($content) { 
  2. $theme_name = next(explode('/themes/', $content)); 
  3. $current_path = '/wp-content/themes/' . $theme_name; 
  4. $new_path = '/themes/' . $theme_name; 
  5. $content = str_replace($current_path, $new_path, $content); 
  6. return $content;