Skip to content

Fix: Exclude filled job listings from REST API responses#2927

Open
masteradhoc wants to merge 1 commit intoAutomattic:trunkfrom
masteradhoc:1855-rest-api-adjustment
Open

Fix: Exclude filled job listings from REST API responses#2927
masteradhoc wants to merge 1 commit intoAutomattic:trunkfrom
masteradhoc:1855-rest-api-adjustment

Conversation

@masteradhoc
Copy link
Contributor

Fixes #1855

Changes Proposed in this Pull Request

  • Filled job listings are now excluded from the job listings collection endpoint (GET /wp-json/wp/v2/job-listings) via the rest_job_listing_query filter.

Testing Instructions

  1. Mark one or more job listings as Position Filled in the WP admin.
  2. Make a request to GET /wp-json/wp/v2/job-listings and confirm filled listings are absent from the results.
  3. Confirm non-filled listings are still returned as expected in both cases.

Release Notes

  • Filled job listings are no longer exposed via the REST API.

New or Updated Hooks and Templates

Deprecated Code

Screenshot / Video

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Filled jobs still visible in Rest-Api

1 participant