Workable jobs WP-CLI commands

View as Markdown

WP-CLI commands for Workable jobs: check the connection, run an import, rebuild job terms and clear the cache with wp wkjb.

On this page

Workable Jobs for WordPress adds a wp wkjb command. Run wp help wkjb for the list.

wp wkjb status

Shows where the plugin stands. The access token is never printed, only whether one is set.

FieldWhat it holds
subdomainYour Workable subdomain, empty when not set.
access_tokenyes or no.
apply_modeform (on-site) or redirect (to Workable), as it applies right now.
published_jobsJobs listed on your site.
last_sync, last_resultWhen the last import ran, and ok or failed.
last_counts, last_errorsWhat the last import changed, and its errors.
next_syncWhen the next scheduled import runs.
sync_runningyes or no.
termsup to date, backfill pending or backfill running.
wp wkjb status
wp wkjb status --format=json
wp wkjb status --field=published_jobs

wp wkjb sync

Imports jobs from Workable now, like the scheduled import, and prints what changed: inserted, updated, trashed, revived, orphaned and duration_ms.

It exits with an error when no subdomain is set, another import is running, or the import recorded an error.

wp wkjb terms rebuild and wp wkjb terms cleanup

Both work from the jobs already on your site and never call Workable.

  • rebuild files every job under its job terms again, then deletes empty terms.
  • cleanup deletes terms no published job uses. Terms you hid, renamed or described are kept. The same cleanup runs after every import without errors.

Both refuse to run while an import or another rebuild is running. cleanup also waits until the terms have been built once.

wp wkjb cache clear

Deletes every cached Workable response, like Clear cache under Workable → Settings → Tools. Jobs are not touched.

wp wkjb indexing

Status, log, sending and testing for Google Indexing. See the Google Indexing commands.

Output formats

status and sync take --format=table|json|csv|yaml and --field=<field>, which prints one value. With --format other than table, standard output holds only the data, so scripts can parse it.

Give every Workable job a page on your own site.

Job pages with Google for Jobs markup, search and filters, and on-site applications. $69 a year for one site.