Guest User

Untitled

a guest
Jan 17th, 2019
79
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function custom_woocommerce_placeholder_img_src( $src ) {
  2. $upload_dir = wp_upload_dir();
  3. $uploads = untrailingslashit( $upload_dir['baseurl'] );
  4. // replace with path to your image
  5. $src = $uploads . '/2019/01/15ml.png';
  6.  
  7. return $src;
  8. }
RAW Paste Data