Forum Replies Created

Viewing 1 replies (of 1 total)
  • You can turn off translations for category and tags of post by following this code:

    Turn Off Translations for Category

    function turn_categoryblog_translation_off( $taxonomies, $is_settings ) {
        unset( $taxonomies['category'] );
        return $taxonomies;
    }
    add_filter( 'pll_get_taxonomies', 'turn_categoryblog_translation_off', 10, 2 );

    Turn Off translations for tag

    function turn_tagblog_translation_off( $taxonomies, $is_settings ) {
        unset( $taxonomies['post_tag'] );
        return $taxonomies;
    }
    add_filter( 'pll_get_taxonomies', 'turn_tagblog_translation_off', 10, 2 );
Viewing 1 replies (of 1 total)