ddw_wcde_tweak_product_image_metabox_content

Output an additional user advise for the featured/product image on the edit product screen.

Description

(string) ddw_wcde_tweak_product_image_metabox_content( $content ); 

Returns (string)

Additional content string for the featured/ product image meta box.

Parameters (1)

0. $content
The content.

Usage

  1. if ( !function_exists( 'ddw_wcde_tweak_product_image_metabox_content' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-german-de_de/includes/wcde-functions.php'; 
  3.  
  4. // The content. 
  5. $content = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = ddw_wcde_tweak_product_image_metabox_content($content); 
  9.  

Defined (1)

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

/includes/wcde-functions.php  
  1. function ddw_wcde_tweak_product_image_metabox_content( $content ) { 
  2.  
  3. /** Get current sreen ID */ 
  4. $screen = get_current_screen(); 
  5.  
  6. /** Only in German-based environment and for 'product' post type */ 
  7. if ( wcde_is_german() 
  8. && ! empty( $screen ) 
  9. && in_array( $screen->post_type, array( 'product' ) ) 
  10. ) { 
  11.  
  12. $content .= '<p class="hide-if-no-js description"><small>Groes Hauptproduktbild in der Besucheransicht (Frontend). Produktgaleriebilder werden dagegen zustzlich und kleiner dargestellt.</small></p>'; 
  13.  
  14. } // end if 
  15.  
  16. /** Output our additional content */ 
  17. return $content; 
  18.  
  19. } // end of function ddw_wcde_tweak_product_image_metabox_content