Skip to content

Instantly share code, notes, and snippets.

@mayukojpn
Last active August 29, 2015 14:11
Show Gist options
  • Select an option

  • Save mayukojpn/191c4e223bdaf6c1a635 to your computer and use it in GitHub Desktop.

Select an option

Save mayukojpn/191c4e223bdaf6c1a635 to your computer and use it in GitHub Desktop.
WordPress のユーザー権限を管理者に書き換える ref: http://qiita.com/mayuko-jpn/items/c61caf6478ec681acc1d
update wp_usermeta set meta_value='a:1:{s:13:"administrator";b:1;}' where user_id=ユーザID AND meta_key="wp_capabilities";
update wp_usermeta set meta_value=10 where user_id=ユーザID AND meta_key="wp_user_level";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment