@ papi6283
Sorry, I do not understand what your asking.
Thanks. I resolved it by looking further in the WordPress Support Forum. I will be using a JavaScript function to redirect user directly to the Membership Application after updating the WP profile.
I’m trying to redirect subscriber to an Application for Membership form after updating wp-admin/profile.php.
This is the source code for wp-admin/profile.php:
<?php
/**
* User Profile Administration Screen.
*
* @package WordPress
* @subpackage Administration
*/
/**
* This is a profile page.
*
* @since 2.5.0
* @var bool
*/
define(‘IS_PROFILE_PAGE’, true);
/** Load User Editing Page */
require_once( dirname( __FILE__ ) . ‘/user-edit.php’ );
add_action( ‘profile_update’, ‘tgm_io_custom_profile_redirect’, 12 );
/**
* We use current_user_can to apply this function to the subscriber role only.
* This function redirects users to the site’s home page after they update their profiles.
* The function wp_redirect() must always be followed by exit;
*
*/
function tgm_io_custom_profile_redirect() {
if ( current_user_can( ‘subscriber’ ) ) {
wp_redirect( trailingslashit( home_url( ‘Application’ ) ) );
exit;
}
}
I looked at Peter’s Login Redirect but it’s not tested for wp 4.2.
Can anyone help me please?
I downloaded Peter’s Login Redirect. It allows us to eliminate the profile page for the subscriber altogether. And redirect this role to the Application for membership, which requires administration approval, before upgrade to Contributor role. The Admin and Manager roles are directed to wp-admin as before. This plug-in is not yet tested for WP 4.2 but it’s working fine so far.
@ papi6283
I use that plugin too seems to work just fine.
Thanks. We’re using your Connections Directory, templates and plugins. Still refining it but it’s working beautifully for us too.