WordPress.org

Ready to get started?Download WordPress

Forums

Polylang
Deactivate Flags in the Backend (3 posts)

  1. bej-soan
    Member
    Posted 1 year ago #

    Hi,

    i did not find something about this topic via the searches.

    Is it possible to deactivate the flags in the backend and showing the language code instead?

    The hard way would be to delete/rename the .png files, so the alt-tag is being displayed, but thats not the perfect way.

    http://wordpress.org/extend/plugins/polylang/

  2. bej-soan
    Member
    Posted 1 year ago #

    Okay, for now I will just delete the flag files for the backend.

  3. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

    You can add these lines either in functions.php or in a custom plugin.

    add_filter('pll_get_flag', 'no_flag_on_admin');
    function no_flag_on_admin($flag) {
      return is_admin() ? '' : $flag;
    }

    You will need the development version (1.0.1.8) or future 1.0.2
    http://downloads.wordpress.org/plugin/polylang.zip

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic