Simple wordpress PHP help required (sign up link)

Hey Guys,

I’m in the process of setting up my wordpress site, I’m new to PHP so apologies in advance for the very basic question! Although I’m trying my best to learn as best as possible.

I’ve been trying to amend the below code which asks users to log in when they try to apply for a job on my site (I’m setting up a recruitment website).

<?php echo apply_filters( 'job_manager_job_applications_login_required_message', sprintf( __( 'You must sign in to apply for this position.', 'wp-job-manager-applications' ), wp_login_url( get_permalink() ) ) ); ?>

This produces the following message: You must sign in to apply for this position.

I’m trying to incorporate <?php echo wp_registration_url(); ?> So that users can be redirected to the sign up page if they’re not members of the site. For example: You must sign in to apply for this position. Don’t have an account? Sign up here. I’ve tried a number of things but can’t seem to get the code to work.

Any help would be much appreciated. Thanks

I’m not 100%, but could you just add it in a link?

<a href="<?php echo wp_registration_url(); ?>" title="Sign In">Sign up here</a>
Sponsor our Newsletter | Privacy Policy | Terms of Service