papi6283
Forum Replies Created
-
Thanks. I was able to update it to 5.6 myself at the CPANEL.
Thanks. I will ask my host, CloudAccess.net if PHP 5.6 is supported. And if they will upgrade my site for Woocommerce use.
Forum: Fixing WordPress
In reply to: profile.phpThanks. We’re using your Connections Directory, templates and plugins. Still refining it but it’s working beautifully for us too.
Forum: Fixing WordPress
In reply to: profile.phpI 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.
Forum: Fixing WordPress
In reply to: profile.phpI’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?
Forum: Fixing WordPress
In reply to: profile.phpI think
Forum: Fixing WordPress
In reply to: profile.phpThanks. 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.