Skip to content

Instantly share code, notes, and snippets.

@tripflex
Created September 29, 2017 17:38
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/90db8be70535c0fdaba3beb3ca93076f to your computer and use it in GitHub Desktop.
Save tripflex/90db8be70535c0fdaba3beb3ca93076f to your computer and use it in GitHub Desktop.
WP Job Manager Field Editor - Disable Colon (:) output after Label
<?php
add_filter( 'job_manager_field_editor_custom_field_output_as_show_colon', 'smyles_disable_colon_output', 10, 5 );
function smyles_disable_colon_output( $label_show_colon, $meta_key, $value, $args, $listing_id ){
// Uncomment the code below (remove //) to disable label for specific meta key
// if( $meta_key === 'some_meta_key' ){
// return false;
// }
// Disable label colon output by default
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment