The WPFolks app is out on iPhone and Android. Free, no ads. Download on the App Store Get it on Google Play
Skip to main content
Login Join

Hooks


MemberPress: Disable the Default WordPress Password Reset Link E-Mail

If the “Disable Password Fields on membership registration forms” option is active in MemberPress settings (Dashboard > MemberPress > Settings > Account tab), MemberPress will trigger the default WordPress email containing a password reset link. This code snippet will prevent that email from being triggered.




Role-Based Login Redirect for WordPress Users

Redirect users to different pages after login based on their WordPress role. This snippet sends administrators to the WordPress dashboard while redirecting all other users to a custom account page. Useful for membership sites, WooCommerce stores, client portals, and custom user experiences. Features Redirect admins to /wp-admin/ Redirect subscribers, customers, and other roles to a […]


Control Expiration of Nonce

The nonce_life filter in WordPress allows developers to modify how long nonces remain valid before expiring. In this example, the nonce expiration time is changed from the default WordPress lifetime (approximately 24 hours) to just 120 seconds (2 minutes). A nonce in WordPress is a security token used to protect actions such as: Form submissions […]




Add Custom Login Logo URL

Changes the WordPress login logo link so it points to the site home URL instead of WordPress.org.


Disable Indexing for Selected Page Templates via Yoast SEO

Uses the wpseo_robots filter from the Yoast SEO plugin to apply strict robots meta directives (noindex, nofollow, noarchive, nosnippet, etc.) to specific page templates such as product and category landing pages. This prevents these pages from appearing in search results or being crawled, making it ideal for handling duplicate, thin, or conversion-focused content. Runs at […]


Proudly supported by