If you already use the Publicize option of Jetpack by WordPress.com with your WordPress, you are sure to miss the possibility of using the potential of Publicize on WooCommerce products; that is, that when you publish a new product in your online shop, it is automatically published on the pages and profiles you have configured in Publicize: Facebook, Twitter, Google+, LinkedIn, Tumblr and/or Path.

Well then, thanks to a small piece of PHP code you will be able to add the Publicize option to WooCommerce. To do so you must include the following PHP code in the functions.php file of your child theme:

Copy to clipboard

At APG we use this code in the current WooCommerce 2.2 and it works perfectly, just as it does in earlier versions, so you should have no doubt at all about compatibility with your version of WooCommerce.

We hope this small piece of code helps you share your new products on your social profiles more easily.

Related posts

Comments

Suscríbete
Notificar de
0 Comments
Más antiguos
Más recientes Más votados

In this post

Products and services

Latest posts

Latest comments

Subscribe!

Lista de correos de APG

DATA PROTECTION: In accordance with data protection regulations, we provide you with the following processing information: (+)

  • Responsible: Art Project Group.
  • Treatment purposes: to respond to queries or any type of request made by the user through any of the forms of contact that are made available on the website. Sending communications about products or services (with your consent).
  • Your rights: access, rectification, portability, deletion, limitation and opposition. More information about the treatment in the Privacy Policy.

What we post on !

Se ha publicado #WooCommerce 11.2.2: actualización de seguridad que refuerza las API REST y Store, mejora la validación de CSV y corrige problemas en pagos y pedidos. Incluye cambios en la base de datos.

¡Actualiza cuanto antes!

November 5, 2026