I am adding an action after user registration to add another user role based off the users meta_value.
When I use:
It successfully adds the role ‘editor’, however, I seem to fail to extract the saved user_meta and make it work dynamically.
Below is what I got to but it’s not working
SOLVED:
will return an array and value needs to be a single value, hence it must be set to
Alternatively, you can use:
if you need to set false in a different case.
Thanks to NightHawk for solving this.
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