HashPress Core
This lightweight plugin provides the foundational code required for all HashPress plugins to seamlessly connect with wallets.
Installation
- Download the plugin as a ZIP file from its repository.
- Go to
Pluginssection in WordPress - Click
Add New Plugin - Click
Upload Plugin - Upload the ZIP file
- Click
Activate
Configuration
You will need a WalletConnect Project ID specifically for your current website (domainname). You can get one by going to WalletConnect and setting up a new WalletKit project.
Go to Settings > HashPress Pay and enter your Project ID.
Shortcodes
[hashpress_connect]
Adds a connect/disconnect button.
Useful when you want to allow the user to connect their wallet without sending a transaction. After connecting the button acts as a disconnect button. It uses WalletConnect to establish a a secure connection with cryptocurrency wallets.
The button has a small badge in the top right corner when the active network is
testnetorpreviewnetto warn the user/developer that the code isn't running on the mainnet.
| Attribute | Description | Default value |
|---|---|---|
| network | Type of network: testnet, previewnet or mainnet | testnet |
| connect_text | Button text before wallet is paired | Connect wallet |
| disconnect_text | Button text after connection is established | Disconnect wallet |
Example:
[hashpress_connect network="testnet" connect_text="Connect" disconnect_text="Disconnect"]
[hashpress_account]
Displays the Account ID of the paired wallet. It is hidden when no wallet is connected.