| 1 |
<?php |
| 2 |
/** |
| 3 |
* Builder Plugin Compatibility Code |
| 4 |
* |
| 5 |
* @package Themify_Builder |
| 6 |
* @subpackage Themify_Builder/classes |
| 7 |
*/ |
| 8 |
|
| 9 |
/** |
| 10 |
* @link https://wordpress.org/plugins/wp-job-manager/ |
| 11 |
*/ |
| 12 |
class Themify_Builder_Plugin_Compat_WPJobManager { |
| 13 |
|
| 14 |
static function init() { |
| 15 |
add_filter( 'themify_builder_query_post', array( __CLASS__, 'themify_builder_query_post' ) ); |
| 16 |
} |
| 17 |
|
| 18 |
/** |
| 19 |
* Fix missing Job Types taxonomy selector |
| 20 |
* |
| 21 |
* @access public |
| 22 |
*/ |
| 23 |
public static function themify_builder_query_post(array $types ):array { |
| 24 |
$types['job_listing']['options'] = array( |
| 25 |
'job_listing_type' => array( 'name' => __( 'Job Types', 'themify' ) ), |
| 26 |
); |
| 27 |
|
| 28 |
return $types; |
| 29 |
} |
| 30 |
} |