woocommerce_placeholder_img

The WooCommerce woocommerce placeholder img function.

Description

woocommerce_placeholder_img( (string) $size = 'shop_thumbnail' ); 

Parameters (1)

0. $size — Optional. (string) => 'shop_thumbnail'
The size.

Usage

  1. if ( !function_exists( 'woocommerce_placeholder_img' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-deprecated-functions.php'; 
  3.  
  4. // The size. 
  5. $size = 'shop_thumbnail'; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = woocommerce_placeholder_img($size); 
  9.  

Defined (1)

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

/includes/wc-deprecated-functions.php  
  1. function woocommerce_placeholder_img( $size = 'shop_thumbnail' ) { 
  2. wc_deprecated_function( __FUNCTION__, '3.0', 'wc_placeholder_img' ); 
  3. return wc_placeholder_img( $size );