Skip to main content
lhermann's user avatar
lhermann's user avatar
lhermann's user avatar
lhermann
  • Member for 11 years, 11 months
  • Last seen more than a month ago
awarded
comment
How can I load a javascript file that is type="module" the Wordpress way?
I'd suggest this is even better: $tag = str_replace('text/javascript', 'module', $tag);
awarded
awarded
awarded
awarded
awarded
awarded
awarded
awarded
awarded
answered
Loading…
awarded
awarded
revised
Using plugin functionality in external php script not working
I just obscured my aboslute sever filepath
Loading…
awarded
revised
Loading…
comment
Using plugin functionality in external php script not working
Thank's for your suggestion. Since requiring the wp-blog-hreader.php sets up wordpress functions this solution doesn't work. The "add_actio" function has not been initialized. I tried to wrap my problematic function in your suggested one which resulted in this function not being executed at all.
awarded