Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Automatische Updates für WordPress Plugins und Themes aktivieren

Hinweis der Redaktion: Wir erhalten eine Provision für Partnerlinks auf WPBeginner. Die Provisionen haben keinen Einfluss auf die Meinung oder Bewertung unserer Redakteure. Erfahre mehr über Redaktioneller Prozess.

Kürzlich fragte einer unserer Leser, wie er WordPress-Plugins automatisch aktualisieren kann.

Viele Nutzer finden es lästig, dass sie fast jeden zweiten Tag ein Plugin aktualisieren müssen.

In diesem Artikel zeigen wir Ihnen, wie Sie automatische Updates für WordPress-Plugins aktivieren können. Wir zeigen Ihnen auch, wie Sie einige Plugins von automatischen Updates ausschließen können.

How to Enable Automatic Updates for WordPress Plugins

Wann und warum sollten Sie WordPress-Plugins automatisch aktualisieren?

Standardmäßig kann sich WordPress automatisch aktualisieren, wenn eine Sicherheits- oder kleinere Version verfügbar ist. Bei größeren Versionen müssen Sie die Aktualisierung selbst veranlassen. Auch Plugin- und Theme-Updates müssen Sie selbst installieren.

Die Aktualisierung Ihrer WordPress-Website ist entscheidend für die Sicherheit und Stabilität Ihrer Website. In unserem Leitfaden erfahren Sie, warum Sie immer die neueste Version von WordPress verwenden sollten.

Das Gleiche gilt für alle Plugins und Themes, die auf Ihrer Website installiert sind. Sie müssen Updates für Themes und Plugins installieren, um neue Funktionen und Korrekturen zu erhalten.

Vielleicht ist Ihnen jedoch aufgefallen, dass einige von ihnen häufiger aktualisiert werden als andere. Viele beliebte Plugins werden fast wöchentlich aktualisiert.

WordPress updates

Einige Nutzer empfinden es als störend, dass jedes Mal, wenn sie sich einloggen, ein Update für ein oder mehrere Plugins verfügbar ist.

Wie wäre es, wenn Sie vertrauenswürdigen Entwicklern erlauben würden, Plugins automatisch zu aktualisieren, ähnlich wie bei WordPress.

Schauen wir uns an, wie Sie Plugins in WordPress automatisch aktualisieren können.

Wie man automatisch Updates für einige Plugins in WordPress installiert

WordPress hat mit WordPress 5.5 automatische Updates für WordPress-Plugins und -Themes eingeführt. Damit können Sie automatische Updates für einzelne WordPress-Plugins und -Themes direkt von Ihrem WordPress-Dashboard aus aktivieren.

Automatische Updates für einzelne Plugins aktivieren

Besuchen Sie einfach die Seite Plugins “ Installierte Plugins im WordPress-Administrationsbereich. Hier sehen Sie die Liste all Ihrer installierten Plugins mit einem Link zu „Automatische Updates aktivieren“ neben jedem Plugin.

Enable automatic updates for WordPress plugins

Sie müssen auf den Link „Automatische Updates aktivieren“ klicken, um automatische Updates für einzelne Plugins zu aktivieren.

Automatische Updates für WordPress-Themes aktivieren

Für WordPress-Themes müssen Sie Appearance “ Themes besuchen und auf das Theme klicken, das Sie automatisch aktualisieren möchten.

Daraufhin wird das Popup-Fenster mit den Themeninformationen angezeigt. Von hier aus können Sie auf den Link „Automatische Updates aktivieren“ klicken, um die automatischen Updates für dieses Thema zu aktivieren.

Theme auto-updates

Das war’s schon. WordPress wird diese Plugins und Themes nun automatisch aktualisieren, sobald eine neue Version verfügbar ist. Sie erhalten auch eine E-Mail-Benachrichtigung, wenn ein neues Update auf Ihrer Website installiert wird.

Automatisches Update für alle WordPress-Plugins einrichten

Sie können WordPress so einstellen, dass alle Plugin-Updates automatisch installiert werden, indem Sie diesen Code einfach in die Datei functions.php Ihres Themes, ein Site-spezifisches Plugin oder ein Code-Snippets-Plugin einfügen.

add_filter( 'auto_update_plugin', '__return_true' );

Dieser Filter weist den automatischen Updater von WordPress an, Plugin-Updates automatisch zu installieren, wenn sie verfügbar sind.

Wenn Sie auch Ihre Themes automatisch aktualisieren möchten, können Sie einen weiteren Code wie diesen hinzufügen:

add_filter( 'auto_update_theme', '__return_true' );

Wir empfehlen, diesen Code mit dem WPCode-Plugin hinzuzufügen. Es ist der sicherste und einfachste Weg, um benutzerdefinierte Codeschnipsel in WordPress hinzuzufügen, ohne die functions.php-Datei Ihres Themes zu bearbeiten.

Um loszulegen, müssen Sie das kostenlose WPCode-Plugin installieren und aktivieren. Wenn Sie eine Anleitung benötigen, lesen Sie diesen Leitfaden zur Installation eines WordPress-Plugins.

Sobald das Plugin aktiviert ist, gehen Sie in Ihrem WordPress-Dashboard auf Code Snippets Snippet hinzufügen. Suchen Sie dort die Option „Eigenen Code hinzufügen (neues Snippet)“ und klicken Sie auf die Schaltfläche „Snippet verwenden“ darunter.

Add a new custom code snippet in WPCode

Fügen Sie als Nächstes einen Titel für Ihr Codefragment hinzu. Das kann alles sein, was Ihnen hilft, sich zu erinnern, wofür der Code ist.

Fügen Sie dann einfach den obigen Code in das Feld „Codevorschau“ ein und wählen Sie im Dropdown-Menü „PHP Snippet“ als Codetyp aus.

Paste code snippet into WPCode

Schalten Sie schließlich den Schalter von „Inaktiv“ auf „Aktiv“ um und klicken Sie auf die Schaltfläche „Snippet speichern“.

Activate and save your custom code snippet

Das war’s. Wenn Sie den zweiten oben aufgeführten Code hinzufügen möchten, wiederholen Sie einfach diese Schritte.

Wie kann ich nach einem Update zu einer früheren Version des Plugins zurückkehren?

Die Inkompatibilität von Plugins oder Themen kann zu Problemen auf Ihrer Website führen. Auch wenn die meisten guten Entwickler ihre Plug-ins gründlich testen, gibt es immer wieder seltene Fehler, die dazu führen können, dass Ihre Website nicht mehr funktioniert.

Der erste Schritt zum Schutz Ihrer Website ist die Installation einer WordPress-Backup-Lösung.

Die Wiederherstellung Ihrer WordPress-Website aus einem Backup scheint jedoch viel Arbeit zu sein. Wenn Sie wissen, welches Plugin- oder Theme-Update das Problem verursacht hat, wäre es einfacher, das Update einfach zurückzusetzen.

Hier erfahren Sie, wie Sie Plugin- oder Theme-Updates ganz einfach rückgängig machen können. Installieren und aktivieren Sie einfach das WP-Rollback-Plugin.

Gehen Sie nach der Aktivierung zurück zur Plugin-Seite auf Ihrer WordPress-Website. Sie werden eine neue Rollback-Option unter jedem auf Ihrer Website installierten Plugin finden.

Rollback plugin's to previous versions

Wenn Sie auf Rollback klicken, können Sie Ihr Plugin auf eine beliebige frühere Version zurücksetzen, die Sie wünschen. Es kann auch Theme-Updates zurücksetzen. Ausführlichere Anweisungen finden Sie in unserer Anleitung zum Rollback von WordPress-Plugins.

Wir hoffen, dieser Artikel hat Ihnen geholfen, automatische Updates für Plugins in WordPress einzurichten. Vielleicht interessieren Sie sich auch für unsere Anleitung zum Aktivieren automatischer Updates in WordPress für Hauptversionen oder unsere Auswahl der besten Drag-and-Drop-Seitenerstellungsprogramme für WordPress.

Wenn Ihnen dieser Artikel gefallen hat, dann abonnieren Sie bitte unseren YouTube-Kanal für WordPress-Videotutorials. Sie können uns auch auf Twitter und Facebook finden.

Offenlegung: Unsere Inhalte werden von unseren Lesern unterstützt. Das bedeutet, dass wir möglicherweise eine Provision verdienen, wenn Sie auf einige unserer Links klicken. Mehr dazu erfahren Sie unter Wie WPBeginner finanziert wird , warum das wichtig ist und wie Sie uns unterstützen können. Hier finden Sie unseren redaktionellen Prozess .

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

Das ultimative WordPress Toolkit

Erhalte KOSTENLOSEN Zugang zu unserem Toolkit - eine Sammlung von WordPress-bezogenen Produkten und Ressourcen, die jeder Profi haben sollte!

Reader Interactions

39 KommentareEine Antwort hinterlassen

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Mrteesurez says

    When it’s good to have both plugins and theme with the WordPress core to update automatically, it certainly comes with some cons.
    1) If there is a crash, it will be difficult to easily identify the culprit plugin, theme or specific action that triggered the issue.
    2) For me, I used to firstly check the changealog to know the new features coming with the new update, so I can know what functions has added or removed form the plugin.

    I still choose to do it manually.

  3. Moinuddin Waheed says

    I prefer doing manual updates to my wordpress websites as it gives a sense of control over the update and also it feels secure not to take risk of crashing the website completely.
    I have heard many times that having updated version is of utmost importance to keep the WordPress safe, is it really the security patch that gets updated always or other factors as well?
    Also, is it advisable to always have the latest version or to have update only when there is security update is concerned?

    • WPBeginner Support says

      More than just security is patched when updating a plugin and we recommend keeping plugins and themes up to date as some add helpful new features for your site :)

      Admin

  4. Jiří Vaněk says

    And what is your specific opinion on automatic updates? Personally, I’ve always found it much better to manage updates manually because it’s possible, and it has often happened to me, that after an update, the website crashed and it took hours or even days before anyone noticed. For that reason, for example, I’ve refrained from automatic updates.

    • WPBeginner Support says

      It depends on the specific site, for more complex sites it is normally better to manually update the site but for simple sites automatic updates are normally for the best.

      Admin

  5. Madhav Anand says

    Nothing worked out please help.

    1. The plugin which is mentioned no longer available to download and use.
    2. On adding code to functions.php it shows „Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.“

    Please update

  6. Sushil Kumar says

    You can replace the link for „Automatic Plugin Updates“ plugin because it is obsolete now and This plugin was closed on October 2, 2018 and is no longer available for download.

  7. VBWyrde says

    Thanks for this information. I installed the plugins mentioned on my test wordpress site (I want to check out how well it works before applying it to my production site). After Activating the plugin and checking off the one’s I want included in the auto-update… wondering… is there any indicator that the plugins are actually being updated? Or do we just wait and check the site later? Thanks again for your advice on this. Much obliged.

  8. Ahad Arzi says

    Hi, first of all thanks for the post. But, Adding that above mentioned auto update plugin code and theme code is recommended? Or It can create any problems in future?

    Please let me know!

  9. Anja says

    As a follow up, I’ve since installed the recommended plugin and that didn’t work either. Troubleshooting points to the site being a managed GoDaddy account as the culprit, so if anyone else has the same problem that may be the cause.

  10. Anja says

    Hi,

    As a beginner I was wondering where exactly I should put this code? Both examples use line 1, but I’m using a child theme and it needs to enque styles first.

    I’ve put it at the bottom following the CSS rule, but I’m not sure if that would create problems or not? I would really appreciate a response.

    Thanks :)

      • Anja says

        Hi,

        This doesn’t seem to have worked as I’m getting a plug-in that needs to be updated. Being a beginner and not knowing PHP I maybe haven’t nested it properly (I haven’t added any nesting at all)?

        My script reads:

        }
        add_action( ‚wp_enqueue_scripts‘, ‚my_theme_enqueue_styles‘ );

        add_filter( ‚auto_update_plugin‘, ‚__return_true‘ );

        add_filter( ‚auto_update_theme‘, ‚__return_true‘ );

        And it literally ends there. I read on the wordpress codex that lines like this should be added to the wp-config file (which I haven’t done because I have no idea to do it). For educational purposes, why have you chosen functions.php instead?

        Thanks again for your help, and I’m sorry if this is an obvious question.

        • Anja says

          Please? I really don’t know what I’ve done wrong, even though further reading did reveal why you’ve added this to functions.php and NOT the codex (as they write not to put it in for these especially).

        • Anja says

          Pretty please? As a beginner I really can’t think of what else to do, and this article is targeted at beginners. You need to consider that for every one person who takes the time to say something or ask a question there’s probably about 10 others who’ve just passed on.

  11. Steve says

    The WP Rollback plugin has not been updated in 8 months as of 5/16/2017. Do you still recommend it or attest to it’s viability for release 4.7.4 of WordPress or earlier?
    Thx
    Steve

  12. Panagiotis says

    WordPress Codex advises to put this code to wp-config.php what are the pros and cons of putting it to functions.php ?

    • Peter says

      No, it says:
      „Do NOT add add_filter() calls directly in wp-config.php. WordPress isn’t fully loaded and can cause conflicts with other applications such as WP-CLI.“

      • Panagiotis says

        Ah filters filters filters.
        Got confused because in the codex it gives some definitions as well that should be put in wp-config.php, filters should go on functions.php. Thanks Peter.

  13. Gail Palubiak says

    You left out one small item…HOW does a beginner(!) insert this code? A few additional screen shots would have been helpful. Thanks

    • Panagiotis says

      Hello Gail,
      you can insert this code by logging in with your ftp credentials to your site and edit functions.php that is located in the /public_html/ folder.

      • Oosman Beekawoo says

        There are so many functions.php files in the /public_html/ folder. Which one do I choose?

        There’s one of them in wp-includes, some in a few of my plugin folders and one in each of my theme folders.

  14. Carol Parker says

    Just handing out compliments – this is absolutely the most useful newsletter I have ever encountered. Your one-topic specific ‚how to‘ posts are so well done – easy to understand and solve issues I didn’t know I had! Thank you, thank you, thank you. My blogs are getting more sophisticated by the day as I learn how to accomplish the fine details.

  15. Jason says

    Great article! Thanks for publishing it!!

    Just curious, the code snippets for both plugins and themes state the same thing. Is there supposed to be a difference?

    Thanks again!

Eine Antwort hinterlassen

Danke, dass du einen Kommentar hinterlassen möchtest. Bitte beachte, dass alle Kommentare nach unseren kommentarpolitik moderiert werden und deine E-Mail-Adresse NICHT veröffentlicht wird. Bitte verwende KEINE Schlüsselwörter im Namensfeld. Lass uns ein persönliches und sinnvolles Gespräch führen.