Content

Restricted

$current_user = wp_get_current_user(); if ( ! wc_customer_bought_product( $current_user->user_email, $current_user->ID, $product->29298 ) ) { _e( ‘This content is only visible for users who bought this product.’ ); }