Support » Allgemeine Fragen » Plugin & shortcodes

  • Gelöst peacefulwarri0r

    (@peacefulwarri0r)


    Hallo,
    ich versuche ein Plugin zu schreiben.

    Wenn ich dies hier in die Plugin PHP Datei tue:

      function test_shortcodes()
      {
            return 'Shortcodes are working!';
      }
      add_shortcode('test_shortcodes', 'test_shortcodes');
    

    Dann funktioniert der Shortcode nicht. Kopiere ich es in die functions.php vom aktivien Theme klappt der shortcode [test_shortcodes].

    Warum klappt es im Plugin nicht?

    Vielen Dank!

Ansicht von 1 Antwort (von insgesamt 1)
Ansicht von 1 Antwort (von insgesamt 1)
  • Das Thema „Plugin & shortcodes“ ist für neue Antworten geschlossen.