Tag: hooks

  • Simple MailChimp merge field example

    Note: as of WP-Members MailChimp Integration version 2.0, merge fields can be managed directly in the extension’s admin tab. This filter remains active and supported, but it is only generally needed for customizing the process if necessary rather than defining it. This is an example of how to utilize the wpmem_mc_merge filter to add additional…

  • User redirection on logout

    The default setup of the plugin will redirect the the user to the blog’s home page when they click the logout link. But what if you want to direct them somewhere else when they are logging out. Here are some ideas on how to do that.

  • Using wpmem_block to block a category

    Suppose you want to block any post that is in a certain category.  This example shows you how to do that using the wpmem_block filter hook.

  • Show optional form fields only on user update

    Suppose you have some additional form fields that are not required for registration and you don’t want to show those as part of the registration process; but you would like them to be included when a user updates their registration info.  Here is an elegant way of doing that without resorting so hiding the fields…

  • Customize the reCAPTCHA style

    For CAPTCHA during the registration process, WP-Members uses reCAPTCHA.  The plugin settings allow you to choose from the basic default themes that are offered by reCAPTCHA: red, white, black glass, and clean.  But suppose you would like to customize the style that is used?  This tutorial is a basic framework to get you started.