Are there WordPress user capabilities needed for the customizer?

Đã có trọn bộ đề thi thử THPT Quốc Gia 2022 các môn: vip.dethihsg247.com
QUẢNG CÁO: Đổi thẻ cào thành tiền mặt min rút 10k tại đây

I’m creating a theme for Themeforest and in their requirements they say that I should use the functions current_user_can to determine if the current user has certain capabilities. For me this would only have consequences for the customizer.

I have a PHP file with all the settings etc. in it. This file is loaded from the functions.php file, so I could use an if-condition to determine if the current user is allowed to edit the customizer.

But I don’t know if this is needed. Does WordPress itself take care of user capabilities in the customizer? Or isn’t this relevant at all, probably because every user can customize the site (it would seem a bit unlogical to me though)?

I searched on the internet, but I can’t really find helpful information about user roles and the customizer. Can anyone tell me how this works in WordPress and if I should do sth as a theme author?

Many thanks in advance!

Xin chào các bạn và quý Thầy Cô. Hãy nhập từ khóa mình muốn vào ô tìm kiếm trên Website để tìm kiếm mọi thứ hoặc trên google các bạn hãy nhập từ khóa + dethihsg247.com để tìm kiếm các bài viết của chúng tôi nhé.
  • Hiện tại chúng tôi có hơn 25 nghìn bài văn mẫu các thể loại.
  • Kho tài liệu, đề thi học sinh giỏi các lớp vô cùng phong phú.
  • Mỗi ngày cập nhật hơn 100 đề thi chất lượng từ các website bán tài liệu lớn.

Tải đề thi VIP với giá siêu rẻ tại Vip.Dethihsg247.Com