{"id":8210683,"date":"2016-09-22T17:58:41","date_gmt":"2016-09-22T17:58:41","guid":{"rendered":"https:\/\/wordpress.org\/support\/?post_type=topic&#038;p=8210683"},"modified":"2016-09-22T17:58:41","modified_gmt":"2016-09-22T17:58:41","slug":"hide-paypal-express-buttons-for-specific-role","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/hide-paypal-express-buttons-for-specific-role\/","title":{"rendered":"Hide PayPal Express buttons for specific role?"},"content":{"rendered":"<p>Hi there,<\/p>\n<p>just testing the plugin and wondering whether it is possible to hide the pay with PayPal buttons (on cart and at top of checkout page) depending on the user&#8217;s role.<\/p>\n<p>I run a wholesale site and do not want to show the PayPal Express checkout buttons for logged-in users who have the &#8216;wholesale&#8217; role.<\/p>\n<p>Grateful for any advice\/guidance.<\/p>\n","protected":false},"template":"","class_list":["post-8210683","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8210683","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8210683\/revisions"}],"predecessor-version":[{"id":8211262,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8210683\/revisions\/8211262"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8210683"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}