-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwpjmaf.php
29 lines (26 loc) · 799 Bytes
/
wpjmaf.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
/**
* @package wpjmaf
* @version 1.0.0
*/
/*
Plugin Name: WP Job Manager Multiple Application From
Plugin URI: https://keendevs.com
Description: A job manager application form extension that enable selecting fields for job specific
Author: Azizul Haque
Version: 1.0.0
Author URI: https://keendevs.com
*/
include( 'inc/form-select-meta-box.php' );
add_filter( 'job_manager_locate_template',
function( $template, $template_name, $template_path )
{
global $post;
$form_id = get_post_meta( $post->ID, 'wpjmaf_form_id', true );
if( 'application-form.php' === $template_name && class_exists('GFAPI') && GFAPI::get_form( $form_id ) )
{
return dirname(__FILE__) . '/inc/' . $template_name;
}
return $template;
}
, 10, 3 );