This topic contains 1 reply, has 2 voices. Last updated by Raam Dev 4 years, 1 month ago.
Topic Author | Topic |
---|---|
Posted: Thursday Nov 22nd, 2012 at 11:34 pm #32381 | |
Hello, I hope to update Custom Capability (my WP user name) in batch to some of my current clients, so that they can access certain pages I created. Can you please show me a few lines of codes how I can assign Custom Capability to current users in batch? (I can do a SQL query to pull out the WP users I want to assign Custom Capability to, and then?) Many thanks. Any key code lines I’m missing? $user = get_userdata($user_id); |