cptui_get_ads

Fetch all set ads to be displayed.

Description

(array) cptui_get_ads(); 

Returns (array)


Usage

  1. if ( !function_exists( 'cptui_get_ads' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'custom-post-type-ui/inc/utility.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = cptui_get_ads(); 
  7.  

Defined (1)

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

/inc/utility.php  
  1. function cptui_get_ads() { 
  2.  
  3. /** 
  4. * Filters the array of ads to iterate over. 
  5. * Each index in the ads array should have a url index with the url to link to,  
  6. * an image index specifying an image location to load from, and a text index used 
  7. * for alt attribute text. 
  8. * @since 1.3.4 
  9. * @param array $value Array of ads to iterate over. Default empty. 
  10. */ 
  11. $ads = (array) apply_filters( 'cptui_ads', array() ); 
  12. return $ads;