Add one line of PHP code to redirect to a url in elseif statement.
$10-30 CAD
Completed
Posted over 6 years ago
$10-30 CAD
Paid on delivery
This is a bit of code from a wordpress plugin. I want to add a line of code that will redirect users to another url when this part of the code is being executed:
}elseif(!$vortex_like_dislike['v-switch-anon'] && !is_user_logged_in()){
wp_enqueue_style( 'vortex_like_or_dislike', plugin_dir_url( __FILE__ ).'assets/css/[login to view URL]' );
wp_enqueue_script( 'jquery' );
wp_enqueue_script( 'vortex_login_js', plugin_dir_url( __FILE__ ).'assets/js/[login to view URL]', array(), '1.0',true);
wp_localize_script( 'vortex_login_js', 'vortex_login', array(
'text' => $vortex_like_dislike['v-login-text'],
)
);
}
I am using the "Rating System" wordpress plugin. The "[login to view URL]" file, line 956 to 965.
For example, when that elseif is being executed, i want the page to go to "[login to view URL]"
Provide the ftp access & wp-admin will add the code as needed for redirection
Relevant Skills and Experience
7 years of wordpress experience
Proposed Milestones
$10 CAD - for work
$10 CAD in 0 day
4.8 (167 reviews)
6.4
6.4
7 freelancers are bidding on average $20 CAD for this job
Hello I can help you today with it. GMT -3 time more or less like you
Habilidades y experiencia relevante
I'm a php developer with several years of experience and WP experience
Htos propuestos
$40 CAD - Completed
I am an expert web developer and I can do the job just message me so we can proceed!
Relevant Skills and Experience
I have 5 years experience in web development and I can share my enthusiasm for the project.
Proposed Milestones
$30 CAD - Project Fee
Additional Services Offered
$100 CAD - Website Security
$50 CAD - Website Maintenance
I have 4+ years in php, so i can complete the task in under 2 hours.
Relevant Skills and Experience
php, backend scripting, codeigniter
Proposed Milestones
$20 CAD - completed project.