Add one line of PHP code to redirect to a url in elseif statement.

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]"

Skills: Javascript, PHP, WordPress

See more: magento add store code url language redirect problem, add zip code wordpress, php code call url, php code to open link in new tab, php open url in same window, header php, php open web page, javascript redirect, php redirect to another page, php, mysql, css, html, wordpress, wordpress template, php base64 redirect url, internet explorer redirect url add, wordpress form selection redirect url, wordpress add promotion code, zip code redirect wordpress

About the Employer:
( 3 reviews ) Toronto, Canada

Project ID: #15577157

Awarded to:


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 days
(133 Reviews)

9 freelancers are bidding on average $23 for this job


Quick and easy, Let's get the redirection setup. Thanks Relevant Skills and Experience PHP, WordPress Proposed Milestones $13 CAD - After completion

$13 CAD in 0 days
(944 Reviews)
$40 CAD in 1 day
(22 Reviews)

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

$40 CAD in 1 day
(64 Reviews)

I have recently done something like this for someone, it would be a very quick fix.

$20 CAD in 1 day
(6 Reviews)

Let me know your project design or code and I guarantee to help you see it through to the end. Skills: Photoshop, Illustrator, PSD to HTML, WordPress, XML, HTML5, PHP, CSS3,bootstrap,jQuery,javaScript Relevant Skills More

$20 CAD in 1 day
(5 Reviews)

Hi We are expert in [login to view URL] cam write php line for redirection. can we do further discussion? looking forward your reply.

$15 CAD in 1 day
(2 Reviews)

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 More

$30 CAD in 1 day
(1 Review)

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.

$15 CAD in 1 day
(0 Reviews)