Wpis z mikrobloga

Chyba za późno hook dodajesz, dodaj sobie w konstruktorze
addaction('init', [$this, 'registerScripts']), w tej metodzie robisz rejestrację skryptów
wp
registerscript('script-handler-name', ...);

a potem w shortcodzie tylko
wp
enqueue_script('script-handler-name');
  • Odpowiedz