Tag: admin

When I test client sites I need to re-create this site on my local machine. I often use Duplicator plugin to get full backup of client site with files and database dump. I need a login to WordPress too. Sometimes client create a login for me, but sometimes not.

This is a code which allow to change password for user “admin” or create the user “admin” with password “admin”.

1. Add custom fields.

First you must add custom fields to selected post type or custom post type. Then go to Types -> Custom Fields and add a group with few fields. I added CPT “Clan” and group “Clan Data” and two fields “:

“Since” – as a data field

“Select field” – as a select

2. Tick selected Custom Field(s).

After you successfully add a custom fields, go to custom post type edit screen and choose which custom fields should be displayed on entry list.