HI,
I have updated the redirect URL immediately after the company saves thier profile and it is working. However, i tried to do the same for candidates and it is not working. Can your review my code?
function redirect_after_save_company( $company_id ) {
if( $company_id ) {
noo_message_add(__('Company updated','noo'));
}
wp_safe_redirect('MY_URL_IS_HERE');
die;
}
add_action( 'noo_save_company', 'redirect_after_save_company' );
function redirect_after_save_candidate( $candidate_id ) {
if( $candidate_id ) {
noo_message_add(__('Your profile is updated successfully','noo'));
}
wp_safe_redirect('MY_URL_IS_HERE');
die;
}
add_action( 'noo_save_candidate', 'redirect_after_save_candidate' );