Skip to content

Instantly share code, notes, and snippets.

@tripflex
Created February 9, 2023 00:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tripflex/26a6a4271498f683e05b9294f124545d to your computer and use it in GitHub Desktop.
Save tripflex/26a6a4271498f683e05b9294f124545d to your computer and use it in GitHub Desktop.
Custom Singular "Job" Value when using Search and Filtering Result Replacement
<?php
add_filter('search_and_filtering_job_singular', 'smyles_sf_job_singular');
function smyles_sf_job_singular( $singular ){
return __('job today');
}
add_filter('search_and_filtering_job_plural', 'smyles_sf_job_plural');
function smyles_sf_job_plural( $singular ){
return __('jobs today');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment