Membership Plugin

WordPress Membership Plugin

  • Home
  • Documentation
  • Addons
  • Support
    • Quick Setup
    • Documentation
    • Premium Addon Support
    • Paid Support
    • Support Forum
    • Support Forum Search
    • Forum Login
    • Forum Registration
  • Contact
You are here: Home

Jack

  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • December 30, 2017 at 8:46 am in reply to: Re-direct after free registration #12825
    Jack
    Participant

    Btw, the following is the code excerpt from functions.php. The site is running in localhost hence the localhost URL.

    <?php
    /**
     * Twenty Sixteen functions and definitions
     *
     * Set up the theme and provides some helper functions, which are used in the
     * theme as custom template tags. Others are attached to action and filter
     * hooks in WordPress to change core functionality.
     *
     * When using a child theme you can override certain functions (those wrapped
     * in a function_exists() call) by defining them first in your child theme's
     * functions.php file. The child theme's functions.php file is included before
     * the parent theme's file, so the child theme functions would be used.
     *
     * @link https://codex.wordpress.org/Theme_Development
     * @link https://codex.wordpress.org/Child_Themes
     *
     * Functions that are not pluggable (not wrapped in function_exists()) are
     * instead attached to a filter or action hook.
     *
     * For more information on hooks, actions, and filters,
     * {@link https://codex.wordpress.org/Plugin_API}
     *
     * @package WordPress
     * @subpackage Twenty_Sixteen
     * @since Twenty Sixteen 1.0
     */
    
    /**
     * Supprt for registration redirection in Simple Membership plugin.
     */
     
    add_action('swpm_front_end_registration_complete', 'do_after_rego_redirection');
    add_action('swpm_front_end_registration_complete_fb', 'do_after_rego_redirection');
    function do_after_rego_redirection()
    {
        //TODO - Specify the URL that you want to redirect to
        $url = 'http://localhost/';
        wp_redirect($url);
    }
    
    /**
     * Twenty Sixteen only works in WordPress 4.4 or later.
     */
    if ( version_compare( $GLOBALS['wp_version'], '4.4-alpha', '<' ) ) {
    	require get_template_directory() . '/inc/back-compat.php';
    }
    
    
    December 30, 2017 at 8:44 am in reply to: Re-direct after free registration #12824
    Jack
    Participant

    Hi,

    I am running into the same problem so wonder if there is any solution?

    I don’t have any add-on installed or any other WP plugins except for the default ones. I added the codes to the top of the functions.php file under the WP Twenty Sixteen theme.

    After registering the registration page is displayed again with no body text.

    Thanks.
    Jack

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
Next Page »

Please read this message before using our plugin.

Search

Featured Addons and Extensions

  • Membership Form Builder Addon
  • Member Directory Listing Addon
  • WooCommerce Payment Integration
  • Member Data Exporter Addon

Documentation

  • Documentation Index Page

Copyright © 2026 | Simple Membership Plugin | Privacy Policy