Minimales WordPress-Plugin-Beispiel
English
Deutsch
Siehe auch: Minimales WordPress JS-Plugin-Beispiel Minimales WordPress CSS-Plugin-Beispiel Minimales WordPress Shortcode-Plugin-Beispiel
Dies ist das minimale WordPress-Plugin - es tut überhaupt nichts, aber Sie können es aktivieren und als Basis für Ihre Plugins verwenden.
Erstellen Sie zuerst ein Verzeichnis für Ihr Plugin in wp-content/plugins/, z.B. wp-content/plugins/my-plugin
Speichern Sie den folgenden Code als functions.php im Plugin-Ordner, z.B. wp-content/plugins/my-plugin/functions.php
minimal_wordpress_plugin.php
<?php
/*
Plugin Name: My plugin
*/Nun können Sie Ihr Plugin im WordPress-Admin-Bereich aktivieren:

If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow