MasterPress 1.3.1 is a compatibility release for PHP 8 and WordPress 5.7. It still remains backwards compatible with older PHP versions.
Mixed $id = null
The “id” to search for – this argument is flexible in that it can be any one of the following:
- A username – e.g. “johnsmith”
- An email address – e.g. “firstname.lastname@example.org”
- A user ID – e.g. 2, or even “2”
- null (not provided). This will attempt to return the current (logged in) user