CAMBIAR IMAGEN DEL PRODUCTO

// Snippet para cambiar la imagen por defecto en WooCommerce
add_action( ‘init’, ‘custom_placeholder_image’ );

function custom_placeholder_image() {
add_filter(‘woocommerce_placeholder_img_src’, ‘custom_woocommerce_placeholder_img_src’);

function custom_woocommerce_placeholder_img_src( $src ) {
$upload_dir = wp_upload_dir();
$uploads = untrailingslashit( $upload_dir[‘baseurl’] );
$src = $uploads . ‘/2016/06/producto-no-disponible.png’;

return $src;
}
}

Entradas relacionadas

48 comentarios

  • I used to be able to find good information from your content.

  • bookmarked!!, I like your web site.

  • I quite like reading an article that can make people think. Also, thank you for allowing for me to comment.

  • I really like reading a post that will make men and women think. Also, thanks for allowing for me to comment.

  • This is the perfect webpage for everyone who wants to understand this topic. You understand a whole lot its almost hard to argue with you (not that I actually would want to…HaHa). You definitely put a fresh spin on a subject that has been discussed for decades. Great stuff, just wonderful.

  • This is a topic which is close to my heart… Cheers! Where are your contact details though?

  • I would like to thank you for the efforts you’ve put in penning this site. I really hope to view the same high-grade blog posts by you in the future as well. In fact, your creative writing abilities has encouraged me to get my very own website now 😉

  • That is a very good tip especially to those fresh to the blogosphere. Short but very accurate info… Thank you for sharing this one. A must read article.

  • Good information. Lucky me I discovered your site by chance (stumbleupon). I’ve book marked it for later!

  • Can I simply say what a comfort to uncover an individual who genuinely knows what they’re discussing on the internet. You actually realize how to bring an issue to light and make it important. More people should read this and understand this side of the story. I was surprised that you aren’t more popular given that you most certainly possess the gift.

  • I really love your website.. Great colors & theme. Did you make this web site yourself? Please reply back as I’m attempting to create my own personal blog and would like to find out where you got this from or what the theme is called. Many thanks!

  • Hello there, There’s no doubt that your blog could be having internet browser compatibility issues. Whenever I look at your site in Safari, it looks fine however when opening in Internet Explorer, it’s got some overlapping issues. I simply wanted to provide you with a quick heads up! Aside from that, fantastic website.

  • Spot on with this write-up, I seriously believe that this website needs much more attention. I’ll probably be returning to see more, thanks for the info.

  • I could not resist commenting. Well written!

  • May I simply say what a relief to discover an individual who really knows what they’re talking about over the internet. You certainly know how to bring an issue to light and make it important. A lot more people must read this and understand this side of your story. I was surprised you are not more popular given that you most certainly have the gift.

  • Very interesting details you have noted, thank you for putting up.

    Travel guide

  • You’re so awesome! I do not believe I’ve read through anything like that before. So nice to discover somebody with some original thoughts on this issue. Really.. many thanks for starting this up. This web site is one thing that is needed on the web, someone with some originality.

  • I needed to thank you for this good read!! I certainly enjoyed every little bit of it. I’ve got you saved as a favorite to check out new stuff you post…

  • Aw, this was a really nice post. Finding the time and actual effort to make a superb article… but what can I say… I hesitate a whole lot and never seem to get nearly anything done.

  • Nice post. I learn something new and challenging on blogs I stumbleupon on a daily basis. It’s always interesting to read content from other authors and practice something from other websites.

  • I was able to find good information from your content.

  • I’d like to thank you for the efforts you have put in writing this site. I really hope to view the same high-grade content from you in the future as well. In truth, your creative writing abilities has encouraged me to get my own, personal website now 😉

  • Good post. I learn something totally new and challenging on blogs I stumbleupon on a daily basis. It will always be exciting to read content from other writers and practice something from their web sites.

  • Good information. Lucky me I came across your site by chance (stumbleupon). I’ve bookmarked it for later!

  • Very nice post. I certainly appreciate this site. Keep it up!

  • I blog frequently and I truly appreciate your information. This article has truly peaked my interest. I will book mark your blog and keep checking for new details about once a week. I opted in for your Feed too.

  • Very good article! We are linking to this great article on our site. Keep up the great writing.

  • Howdy! This blog post could not be written much better! Going through this article reminds me of my previous roommate! He always kept preaching about this. I will send this post to him. Pretty sure he will have a great read. Thanks for sharing!

  • Very good post. I’m facing a few of these issues as well..

  • Having read this I believed it was really enlightening. I appreciate you taking the time and effort to put this article together. I once again find myself spending a lot of time both reading and posting comments. But so what, it was still worth it!

  • I’m impressed, I have to admit. Rarely do I encounter a blog that’s both educative and amusing, and without a doubt, you have hit the nail on the head. The problem is something too few men and women are speaking intelligently about. I am very happy I came across this during my hunt for something relating to this.

  • The very next time I read a blog, I hope that it doesn’t disappoint me as much as this one. After all, I know it was my choice to read through, nonetheless I really believed you would probably have something helpful to talk about. All I hear is a bunch of moaning about something that you could possibly fix if you were not too busy searching for attention.

  • Excellent post! We will be linking to this great content on our website. Keep up the good writing.

  • I want to to thank you for this very good read!! I certainly loved every little bit of it. I have you book-marked to check out new stuff you post…

  • A motivating discussion is definitely worth comment. I think that you ought to publish more on this topic, it might not be a taboo subject but generally folks don’t discuss these topics. To the next! Best wishes.

  • You are so cool! I do not suppose I’ve truly read anything like this before. So good to discover somebody with some genuine thoughts on this subject. Seriously.. many thanks for starting this up. This web site is one thing that is required on the web, someone with some originality.

  • Excellent write-up. I definitely appreciate this site. Continue the good work!

  • Very good blog post. I definitely appreciate this website. Continue the good work!

  • This is the right site for everyone who would like to understand this topic. You realize a whole lot its almost tough to argue with you (not that I really will need to…HaHa). You definitely put a new spin on a subject that’s been discussed for a long time. Excellent stuff, just excellent.

  • Aw, this was a very good post. Taking the time and actual effort to generate a very good article… but what can I say… I put things off a whole lot and don’t seem to get anything done.

  • This website was… how do I say it? Relevant!! Finally I have found something that helped me. Thank you!

  • There’s definately a great deal to know about this subject. I really like all the points you’ve made.

  • Hello there! This post could not be written any better! Looking through this post reminds me of my previous roommate! He continually kept talking about this. I most certainly will send this article to him. Fairly certain he will have a great read. I appreciate you for sharing!

  • I’m very pleased to find this page. I need to to thank you for your time for this wonderful read!! I definitely appreciated every part of it and i also have you bookmarked to check out new stuff on your blog.

  • It’s really a great and helpful piece of info. I am satisfied that you
    simply shared this useful info with us. Please keep us up to date
    like this. Thanks for sharing.

  • You really make it appear so easy along with your presentation but I find this matter to be actually something that I feel I’d by no means understand.
    It seems too complex and very vast for me. I’m looking ahead on your subsequent post, I’ll attempt to get the
    hold of it!