kushalforu
Forum Replies Created
Viewing 6 replies - 1 through 6 (of 6 total)
-
Content Optimization tab is getting blank after few seconds.
Same issue for me as well.
In mean time can u take a look at issue
https://www.useloom.com/share/6e6fb009ad4a420a80fe35179536f1e5
Hello Gabriel,
Just wondering if you managed this one ?? waiting for 1.6 ??Forum: Plugins
In reply to: [WooCommerce] WooCommerce Change User Role on Purchase of Specific ProductThanks lorro, Your suggestion worked perfectly ! So here i am again pasting the working code for others reference…
Really thanks for the help.
So now correct code is for the above said requirement :-
<?php function lgbk_add_member( $order_id ) { $order = new WC_Order( $order_id ); $items = $order->get_items(); foreach ( $items as $item ) { $product_name = $item['name']; $product_id = $item['product_id']; $product_variation_id = $item['variation_id']; if ( $order->user_id > 0 && $product_id == '33' ) { update_user_meta( $order->user_id, 'paying_customer', 1 ); $user = new WP_User( $order->user_id ); // Remove role $user->remove_role( 'subscriber' ); // Add role $user->add_role( 'contributor' ); } } } add_action( 'woocommerce_order_status_completed', 'lgbk_add_member' ); ?>
Having same problem !
Please suggest….
Initially during the pageload plugin is finding and replacing the text but once page loaded completely the old text is showing again !
Hello Gabriel,
That will be awesome if you will add the same ! hoping this feature soon ??
Viewing 6 replies - 1 through 6 (of 6 total)