Included with the latest update to Hide My Site Multipass, you now have at your disposal a global $multipass object which allows you to access the users password data in your php code.
Here is an example of how you can access the object within your php code:
1 2 3 4 5 6 7 8 9 10 11 |
global $multipass; echo $multipass->id; //prints the password id echo $multipass->label; //prints the password label echo $multipass->password; //prints the password text echo $multipass->getlevel; //prints the password access level echo $multipass->neverexpires; //prints whether the password is set to never expire echo $multipass->month; //prints the expiration month echo $multipass->day; //prints the exp. day echo $multipass->year; //prints the exp. year echo $multipass->hour; //prints the exp. hour echo $multipass->minute; //prints the exp. minute |
Examples uses
With the user’s password data available, there are a myriad of things you could do in your code. For example, you could include the user’s password in their purchase receipt. Or you might add a message to your template file that says “You have an access level of 7 (replace 7 with the user’s actual level). For higher level access passwords, go to our checkout page.”
Thanks for taking the read this quick Multipass update. Hope you find it helpful. Please feel free to share in the comments how you end up implementing the user’s password data on your site.