Skip to content

Instantly share code, notes, and snippets.

@tripflex
Created September 19, 2018 22:02
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/72c35dc2cd6f9e308672c5f9771fb5a8 to your computer and use it in GitHub Desktop.
Save tripflex/72c35dc2cd6f9e308672c5f9771fb5a8 to your computer and use it in GitHub Desktop.
Set featured listing admin checkbox label value in WP Job Manager
<?php
add_filter( 'job_manager_job_listing_data_fields', 'smyles_change_featured_listing_label', 9999 );
function smyles_change_featured_listing_label( $fields ){
if( array_key_exists( '_featured', $fields ) ){
$fields['_featured']['label'] = __( 'Make Listing Sticky' );
$fields['_featured']['description'] = __( 'Featured listings will be sticky during searches, and can be styled differently.' );
}
return $fields;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment