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' ); |
Changelog
1.6.1
- [Fix] Issue with sorting results
1.6.0
- [Update] Compatibility with SearchWP 4.0
- [Fix] Issue with query storage in some cases
1.5.15
- [Fix] Better support for
searchwp_wpjmi_hijack_job_listing_search
hook - [Fix] PHP Warning
- [Fix] Trigger index after front end submissions
- [Update] Updated updater
1.5.14
- [Fix] Ensure proper order when all results are Featured Job Listings
1.5.13
- [Fix] Fixed an issue where Featured Jobs may have been returned incorrectly
- [Update] Updated updater
1.5.12
- [Improvement] Featured items now bubble to the top of results
- [Update] Updated updater
1.5.11
- [Fix] Fixed an issue that prevented disabling hijack of default WPJM search
1.5.10
- [Fix] Fixed an issue preventing WP Job Manager-powered meta searches from applying properly
1.5.9
- [Fix] Fixed an issue with engine name filtration at runtime
1.5.8
- [Fix] Compatibility fix for WP Job Manager
- [Update] Updated updater
1.5.7
- [Fix] Compatibility fix for WP Job Manager - Resume Manager
1.5.6
- [Fix] Fixed an issue with pagination not working properly
1.5.5
- [Fix] Fixed an issue where results limiting was too lenient, falling back to showing all results
1.5.4
- [Fix] Added support for WP Job Manager Job Alerts
1.5.3
- [Fix] Fixed an issue that did not restrict search results properly when no results were found
1.5.2
- [Fix] Plays better with other extensions that aim to also enhance WP Job Manager search by not assuming too much about
post__in
usage
1.5.1
- [Fix] Fixed an issue that caused no search results to show up in WP Job Manager 1.21.4 or newer
1.5
- [Improvement] Automatic updates provided based on your SearchWP license key
1.3
- [Fix] Fully integrated with proper pagination
1.2
- [Fix] Fixed an issue with pagination
- [Improvement] Better namespacing on methods
1.1
- [Fix] Fixed an issue where the resume search query wouldn't be properly retrieved resulting in no search results
1.0
- Initial release