wc_dg_no_image_uri

The WooCommerce Dynamic Gallery LITE wc dg no image uri hook.

Description

apply_filters( 'wc_dg_no_image_uri', (unknown) $woo_dynamic_gallery_js_url_mygallery_no_image_png ); 

Parameters (1)

0. $woo_dynamic_gallery_js_url_mygallery_no_image_png (unknown) => WOO_DYNAMIC_GALLERY_JS_URL . '/mygallery/no-image.png'
The woo dynamic gallery js url mygallery no image png.

Usage

To run the hook, copy the example below.
  1. $woo_dynamic_gallery_js_url_mygallery_no_image_png = apply_filters( 'wc_dg_no_image_uri', $woo_dynamic_gallery_js_url_mygallery_no_image_png ); 
  2.  
  3. if ( !empty( $woo_dynamic_gallery_js_url_mygallery_no_image_png ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the wc_dg_no_image_uri callback 
  2. function filter_wc_dg_no_image_uri( $woo_dynamic_gallery_js_url_mygallery_no_image_png ) { 
  3. // make filter magic happen here... 
  4. return $woo_dynamic_gallery_js_url_mygallery_no_image_png
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'wc_dg_no_image_uri', 'filter_wc_dg_no_image_uri', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'wc_dg_no_image_uri', 'filter_wc_dg_no_image_uri', 10, 1 ); 

Defined (1)

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

/classes/class-wc-dynamic-gallery-functions.php  
  1. $no_image_uri = apply_filters( 'wc_dg_no_image_uri', WOO_DYNAMIC_GALLERY_JS_URL . '/mygallery/no-image.png' );