SQL 39
Wp user capabilities via database By micha on 9th October 2024 12:50:10 PM
  1. 1. CREATE a NEW USER IN {prefix}_users TABLE
  2. 2. GO TO {prefix}_usermeta TABLE
  3.  
  4.     user_id: Fill IN the ID OF the USER you created IN the previous step (FROM the users TABLE).
  5.     meta_key: Enter wp_capabilities OR IF your TABLES have a prefix THEN enter prefix_capabilities. Example : wptest_capabilities
  6.     meta_value: Fill IN the FIELD WITH a:1:{s:13:"administrator";s:1:"1";}. IF your TABLE name has a prefix THEN fill IN the FIELD WITH a:1:{s:13:"administrator";b:1;}

Paste is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.