Table of Contents
Shortcodes #
You can also place the buttons everywhere you want with this shortcode:
- Login Button
[wpdappmtmsk_authorize_button sign_in_text="Your text" img_url="Icon image url" alt_text="Your alt text" redirect_to="Your redirect url"]
- Link/Unlink Metamask – Applicable for a site that has login/pass authorization simultaneously with metamask authorization
[wpdappmtmsk_link_button link_text="Text for link button" unlink_text="Text for unlink button" img_url="Icon image url" alt_text="Your alt text"]]
The plugin provides you with the following methods:
Methods #
wpdappmtmsk_has_current_user_metamask() : returns boolean
Check if the current user has a metamask account linked.wpdappmtmsk_has_user_metamask($user_id)
: returns boolean
Check if the specified user has a metamask account linked.