kurulumu-net
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Groups
    • Users
    • Tags
    • Solved
    • Yasal
      • Kullanım Şartları
      • Gizlilik İlkesi
      • İletişim

    Wordpress admin bar üyelerden gizleme

    Wordpress
    wordpress
    1
    1
    59
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • admin
      admin Admin last edited by admin

      Wordpress admin barı yöneticiler hariç diğer tüm kullanıcılardan gizlemek için;
      Wordpress admin panelinde aşağıdaki yolu takip edin.

      Görünüm > Tema Dosya Düzenleyici > Sağ üst köşeden aktif olan temayı seçin > Sol menüde tema işlevleri başlığı altında bulunan functions.php adlı dosyaya aşağıdaki kodu yapıştırın.

      add_action(‘after_setup_theme’, ‘remove_admin_bar’);

      function remove_admin_bar() {
      if (!current_user_can('administrator') && !is_admin()) {
        show_admin_bar(false);
      }
      }
      

      Herhangi bir önbellek eklentisi kullanıyorsanız önbelleği temizleyin.

      1 Reply Last reply Reply Quote 1

      • First post
        Last post

      Benzer Konular