WPIntell

Source evidence

WooCommerce integration

Show Private · support · 2016-02-11T11:47:00+00:00

complaintsentiment
highseverity
0.85relevance
0replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

6 / 30 rows with source links

20.0% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

24 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Gabriel Reguly unresolved
The following code extends plugin functionality to WooCommerce, so visitors can ‘add to cart’ private products. // ------------------------------------------------------ // Provide add to cart/checkout to private products // ------------------------------------------------------ add_filter( 'woocommerce_is_purchasable', 'sp_is_purchasable', 10, 2 ); function sp_is_purchasable( $purchasable, $product ) { if ( ! $purchasable && $product->product_type != 'grouped' && $product->product_type != 'external' ) { if ( 'private' === $product->post->post_status ) { $purchasable = true; } } return $purchasable; } Cheers, Gabriel https://wordpress.org/plugins/show-private/

Comments

0 shown

No comments were stored for this source.