advantage_remove_images

Content Filter: Remove image from post.

Description

advantage_remove_images( $content ); 

Parameters (1)

0. $content
The content.

Usage

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

Defined (1)

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

/inc/lib-general.php  
  1. function advantage_remove_images( $content ) { 
  2. $postOutput = preg_replace('/<img[^>]+./', '', $content); 
  3. return $postOutput;