How to hide WooCommerce product title and short description to non logged in users?
Your $description is shown because you concatenated it is your condition in $description = ‘ ‘ . sprintf( __( “To check if this item qualifies for a discount %s an account.”), ” . __(“Log In or Create”) . ” ) . ‘ ‘ . $description; Does the below code helps ? add_filter( ‘woocommerce_short_description’, ‘add_text_before_short_description_for_guests’ ); … Read more