How Do I Make Myself Admin in WordPress Programmatically?

Making Yourself Admin in WordPress Programmatically

When you set up a new WordPress site, the first step is to choose a username and password. After you’ve logged in, you’ll see the WordPress Admin area, which includes the Posts, Pages, Media, and Comments menus.

The Posts menu includes the Posts tab, which lists all of your posts. To make yourself administrator, click the Posts tab, and then click the Edit link next to the post you want to make yourself admin for.

The Edit post window opens. In the General tab, click the Role drop-down menu, and then choose Administrator.

Click the Save Changes button to make the change.

To make yourself administrator for all the posts on your site, click the Posts tab, and then click the Edit link next to all the posts.

In the General tab, click the Role drop-down menu, and then choose Administrator.