by Davis Shaver.
Sign-In With Ethereum for WordPress, powered by RainbowKit.
Providing a Sign-In With Ethereum experience for WordPress using RainbowKit.
Want to try it out? Head here.
/wp-content/plugins/wp-rainbow
directory, or install the plugin through the WordPress plugins screen directly.Using an Infura ID/API key is required to use most features in this plugin, including token-gating and role mapping. You can sign up for a free account here. The free tier is sufficient for most use cases. If you’re using this plugin for a production site, you’ll want to sign up for a paid account to avoid rate limiting.
Find reference implementations of all filters in example plugin here.
wp_rainbow_nonce_life
– Filter amount of time before nonce expires.
wp_rainbow_role_for_address
– Filter role granted to a specific address on sign-in.
wp_rainbow_should_update_roles
– Filter whether roles should be set.
wp_rainbow_infura_id
– Filter Infura ID/API key to override settings value.
wp_rainbow_infura_network
– Filter Infura network to override settings value.
wp_rainbow_redirect_url
– Filter login redirect URL.
wp_rainbow_should_update_roles
– Filter whether roles should be set.
wp_rainbow_should_disable_user_role_updates_on_login
– Filter whether roles should be updated on login.
wp_rainbow_validation_failed
– Fires when validation fails.
wp_rainbow_user_created
– Fires when user created.
wp_rainbow_user_updated
– Fires when user updated.
wp_rainbow_user_login
– Fires when user logs in.