在WooCommerce我的帐户页面上,我试图根据用户角色隐藏几个部分。 p>
目前,所有直接注册WooCommerce注册表的人都被分配了用户角色“客户”。 但是,只有具有“雇主”角色的用户实际上才能进行购买...因此,我希望将“我的地址”部分隐藏给“客户”用户。 p>
如果有任何想法, 我可以用函数吗? Miro p> div>
On the WooCommerce My Account page I am trying to hide a couple of the sections based on the user role.
At the moment, all people who register directly with the WooCommerce registration form are assigned user role 'Customer'. However, only users with role 'Employer' are actually able to make purchases... so effectively I want to hide the My Addresses section to users who are 'Customers'.
Any ideas if I can do this with a function? Miro
在WooCommerce我的帐户页面上,我试图根据用户角色隐藏几个部分。 p>
目前,所有直接注册WooCommerce注册表的人都被分配了用户角色“客户”。 但是,只有具有“雇主”角色的用户实际上才能进行购买...因此,我希望将“我的地址”部分隐藏给“客户”用户。 p>
如果有任何想法, 我可以用函数吗? Miro p> div>