Skip to content

Instantly share code, notes, and snippets.

@tripflex
Created February 20, 2024 21:15
Show Gist options
  • Save tripflex/e34638d44edf2980490cf134caf17398 to your computer and use it in GitHub Desktop.
Save tripflex/e34638d44edf2980490cf134caf17398 to your computer and use it in GitHub Desktop.
Disable translatepress/translation of S&F fields from backend
<?php
add_filter( 'search_and_filtering_fields_translate_fields', 'smyles_skip_translate_fields' );
function smyles_skip_translate_fields( $fields ){
return array();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment