WP Job Manager Integration
WP Job Manager is a popular, well written job board plugin with a thriving add-on library. WP Job Manager offers various search implementations for itself and add-ons. If you would like to enhance the keyword (only) aspect of those search fields, WP Job Manager Integration will do the trick.
Just by activating WP Job Manager Integration you’ll automatically enable SearchWP to handle the keyword search field for both WP Job Manager core and the Resume add-on. All of the other filters will remain functional an untouched, this extension merely restricts the keyword-provided results.
Filters
There are a number of filters to help with your WP Job Manager Integration implementation:
searchwp_wpjmi_hijack_job_listing_search
Whether the extension will integrate with Job Listing searches. Default is true, to disable:
<?php | |
// disable SearchWP integration with WP Job Manager Job Listing searches | |
add_filter( 'searchwp_wpjmi_hijack_job_listing_search', '__return_false' ); |
searchwp_wpjmi_job_engine
Which search engine configuration to use for Job Listing searches. Default is default
, but you can easily use a Supplemental Search Engine:
<?php | |
// use my_search_engine instead of the default search engine when performing | |
// Job Listing searches in WP Job Manager | |
function my_searchwp_wpjmi_job_engine() { | |
return 'my_search_engine'; | |
} | |
add_filter( 'searchwp_wpjmi_job_engine', 'my_searchwp_wpjmi_job_engine' ); |
searchwp_wpjmi_job_post_type_override
WP Job Manager appropriately limits Job Listing search results to the expected post_type
but if you want to override that and force the search engine configuration to take precedence, you can do that:
<?php | |
// force SearchWP configuration to override WP Job Manager's when performing a Job Listing search | |
add_filter( 'searchwp_wpjmi_job_post_type_override', '__return_true' ); |
searchwp_wpjmi_hijack_resume_search
Whether the extension will integrate with Resume searches. Default is true, to disable:
<?php | |
// disable SearchWP integration with WP Job Manager Resume searches | |
add_filter( 'searchwp_wpjmi_hijack_resume_search', '__return_false' ); |
searchwp_wpjmi_resume_engine
Which search engine configuration to use for Resume searches. Default is default
, but you can easily use a Supplemental Search Engine:
<?php | |
// use my_other_search_engine instead of the default search engine when performing | |
// Resume searches in WP Job Manager | |
function my_searchwp_wpjmi_resume_engine() { | |
return 'my_other_search_engine'; | |
} | |
add_filter( 'searchwp_wpjmi_resume_engine', 'my_searchwp_wpjmi_resume_engine' ); |
searchwp_wpjmi_resume_post_type_override
WP Job Manager appropriately limits Resume search results to the expected post_type
but if you want to override that and force the search engine configuration to take precedence, you can do that:
<?php | |
// force SearchWP configuration to override WP Job Manager's when performing a Job Listing search | |
add_filter( 'searchwp_wpjmi_resume_post_type_override', '__return_true' ); |
searchwp_wpjmi_bubble_featured
As of version 1.5.12
WP Job Manager Integration will bubble Featured listings to the top of results. This behavior can be prevented by adding the following to your theme’s functions.php
:
<?php | |
// Prevent SearchWP WP Job Manager Integration from bubbling Featured | |
// listings to the top of search results. | |
add_filter( 'searchwp_wpjmi_bubble_featured', '__return_false' ); |