Forum Replies Created
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
Jack
ParticipantBtw, 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'; }Jack
ParticipantHi,
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 -
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)