jetpack icon indicating copy to clipboard operation
jetpack copied to clipboard

Publicize: Add Global Option To Remove Publicize For Custom Post Types (WooCommerce Products)

Open harishankerr opened this issue 9 years ago • 18 comments

The Issue

Currently, Publicize is enabled for WooCommerce products (and all post types for that matter) by default. Not all WooCommerce customers like their products being shared to Social Media when they add these products in their site. While it is possible to limit the use of the publicize feature on a per-product basis, it would be super-convenient for customers, if publicize could be restricted in a post-type basis (as in the case with WooCommerce Products).

Steps to reproduce the issue

  1. Install JetPack with Publicize enabled in a WooCommerce store with products.
  2. Try adding a new product to the WooCommerce store.
  3. You will notice that the product gets shared immediately on the Social Media profiles that are enabled.

Workaround

Currently, the only way to limit post type support on a per-post-type basis, would be to call the remove_post_type_support function, in the init hook. For instance - this snippet removes WooCommerce products from publicize:

add_action('init', 'woo_publicize_remove');
function woo_publicize_remove() {
  remove_post_type_support( 'product', 'publicize' );
}

It would be a lot easier for customers if this feature was built-in, so that they won't have to use code snippets for the same.

Thanks!

harishankerr avatar Jun 07 '17 01:06 harishankerr

Also in 779849-zen

jeherve avatar Nov 09 '17 19:11 jeherve

Brought up again in 1824594-hc

druesome avatar Feb 16 '18 16:02 druesome

1068331-zen

druesome avatar Apr 07 '18 03:04 druesome

1193887-zen

bikedorkjon avatar May 31 '18 05:05 bikedorkjon

1193355-zen

julsyd avatar Jun 05 '18 07:06 julsyd

Hi all, currently using this workaround but I agree with @harishankerr that being able to control which post types are publicized (perhaps via something like a series of checkboxes in the Jetpack dashboard) would be ideal. I didn't find this workaround right away and ended up having the choice of either manually posting on all my social channels, or using publicize and deleting posts that appeared as a result of new products being added in woocommerce.

ghost avatar Oct 05 '18 02:10 ghost

This issue has been marked as stale. This happened because:

  • It has been inactive in the past 6 months.
  • It hasn’t been labeled `[Pri] Blocker`, `[Pri] High`.

No further action is needed. But it's worth checking if this ticket has clear reproduction steps and it is still reproducible. Feel free to close this issue if you think it's not valid anymore — if you do, please add a brief explanation.

stale[bot] avatar Apr 03 '19 03:04 stale[bot]

Brought up again in 18968885-hc

susanjanec avatar Mar 03 '20 17:03 susanjanec

Also to note when importing test data the products are published and if Publicize is enabled the test products are shared on social media. If there was a way to turn off that option or provide a warning that the products will be shared on social media that would be helpful.

susanjanec avatar Mar 03 '20 18:03 susanjanec

Requested in 22055109-hc.

tbradsha avatar Jun 20 '20 17:06 tbradsha

This issue has been marked as stale. This happened because:

  • It has been inactive in the past 6 months.
  • It hasn’t been labeled `[Pri] Blocker`, `[Pri] High`.

No further action is needed. But it's worth checking if this ticket has clear reproduction steps and it is still reproducible. Feel free to close this issue if you think it's not valid anymore — if you do, please add a brief explanation.

stale[bot] avatar Dec 25 '20 20:12 stale[bot]

Confirming this is still an issue.

Internal: 28203806-hc

JoshuaGoode avatar Mar 05 '21 15:03 JoshuaGoode

Same case in 3816903-zd.

kspilarski avatar Mar 13 '21 10:03 kspilarski

Requested on forums in https://wordpress.org/support/topic/is-it-possible-to-share-posts-with-jetpack-but-not-woo-commerce-products/

muffinpeace avatar Apr 05 '22 12:04 muffinpeace

Good idea but not needed when you can ad a tiny code snippet.

braddalton avatar May 19 '22 06:05 braddalton

mentioned here: 6673200-zd-a8c applied workaround

kimerlin81 avatar Aug 16 '23 14:08 kimerlin81

Support References

This comment is automatically generated. Please do not edit it.

  • [ ] 779849-zen
  • [ ] 1068331-zen
  • [ ] 1193887-zen
  • [ ] 1193355-zen
  • [ ] 3816903-zen
  • [ ] 6673200-zen
  • [ ] 7539949-zen

github-actions[bot] avatar Aug 16 '23 14:08 github-actions[bot]

Also mentioned here: 7539949-zen

Provided the code snippet

edequalsawesome avatar Jan 06 '24 20:01 edequalsawesome