cptui_pluginize_content

Display Pluginize-based content.

Description

cptui_pluginize_content(); 

Usage

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

Defined (1)

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

/inc/about.php  
  1. function cptui_pluginize_content() { 
  2. echo '<h1>' . sprintf( esc_html__( 'More from %s', 'custom-post-type-ui' ), 'WebDevStudios' ) . '</h1>'; 
  3. echo '<div class="wdspromos-about">'; 
  4. $ads = cptui_get_ads(); 
  5. if ( ! empty( $ads ) ) { 
  6.  
  7. foreach ( $ads as $ad ) { 
  8.  
  9. $the_ad = sprintf( 
  10. '<img src="%s" alt="%s">',  
  11. esc_attr( $ad['image'] ),  
  12. esc_attr( $ad['text'] ) 
  13. ); 
  14.  
  15. // Escaping $the_ad breaks the html. 
  16. printf( 
  17. '<p><a href="%s">%s</a></p>',  
  18. esc_url( $ad['url'] ),  
  19. $the_ad 
  20. ); 
  21. echo '</div>';