Url and email application
-
Toggle url application and email application. Or simply disable online application button and show application url instead. Some jobs need an email application and others use url application. How to we enforce this.e.g. If application fields have url as an application method, then then online application button should be hidden. And if form fields contains an email application (online), then url for application should be hidden. Or simply the user can togle and choose either url or email (online)
You find users using email yet you wanted then to go straight to the application url
The snippet below you provided in your documentation breaks the site:
<?php if ( $apply = get_the_job_application_method() ) :
if ( $apply->type === ‘url’ ) {
$application_href = $apply->url;
} elseif ( $apply->type === ’email’ ) {
$application_href = sprintf( ‘mailto:%1$s%2$s’, $apply->email, ‘?subject=’ . rawurlencode( $apply->subject ) );
}
?>
<div class=”application”>
“><?php _e( ‘Apply for job’, ‘wp-job-manager’ ); ?>
</div>
<?php endif; ?>
- The topic ‘Url and email application’ is closed to new replies.