Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

scripts

Can’t load a script in my plugin page

August 5, 2022 by Magenaut

I’m trying to include two scripts, wp_media and my personal when I stay in my plugin options page, but WordPress don’t include it. Someone help?

Categories Q&A, Wordpress Tags media-library, plugin-development, scripts Leave a comment

wp_add_inline_script not adding when script_loader_tag filtered

August 5, 2022 by Magenaut

I’m trying to add the new GA4 code to an existing site, and there seems to be some conflict / ordering issue between script_loader_tag filters and wp_add_inline_script. My functions.php looks thusly:

Categories Q&A, Wordpress Tags child-theme, google-analytics, scripts, wp-enqueue-script, wp-localize-script Leave a comment

Remove Stylesheet by URL that has not been enqueued

August 4, 2022 by Magenaut

I am editing the theme Peggi (https://themeforest.net/item/peggi-a-multipurpose-wordpress-children-theme/22094659) over a child theme to make it GDPR compliant. I managed to remove all external resources like google fonts, except one:

Categories Q&A, Wordpress Tags child-theme, scripts, wp-enqueue-style Leave a comment

Retrieve URL of Script/Style and Dependencies

August 5, 2022August 4, 2022 by Magenaut

Given script X Y and Z how would I get the list in PHP of X Y Z and their dependencies?

Categories Q&A, Wordpress Tags scripts, wp-enqueue-script Leave a comment

How can I get a list of all enqueued scripts and styles?

August 4, 2022August 3, 2022 by Magenaut

I’m creating a plugin and I want to get the list of all scripts and CSS used by other plugins.

Categories Q&A, Wordpress Tags css, scripts, wp-enqueue-script, wp-enqueue-style Leave a comment

wp_register_script multiple identifiers?

August 4, 2022August 3, 2022 by Magenaut

In order to avoid poor performance with multiple <script> tags I do concatenation of scripts regularly and produce one single bundle.min.js JS file and 'jsbundle' identifier.

Categories Q&A, Wordpress Tags javascript, performance, scripts, wp-enqueue-script, wp-register-script Leave a comment

What are the benefits of using wp_enqueue_script?

August 4, 2022August 3, 2022 by Magenaut

Is there any real benefit to using wp_enqueue_script on small self-managed sites? For instance, Modernizr, why enqueue it through a function rather than call it directly inside the document head?

Categories Q&A, Wordpress Tags javascript, scripts, wp-enqueue-script Leave a comment

What is your best practice to execute one-time scripts?

August 4, 2022August 3, 2022 by Magenaut

admin_init – after admin init

Categories Q&A, Wordpress Tags customization, scripts, updates Leave a comment

How to properly dequeue scripts and styles in child theme?

August 4, 2022August 3, 2022 by Magenaut

I made a parent theme and a child theme in one of my project. I enqueued CSS and JavaScripts in my parent theme like below:

Categories Q&A, Wordpress Tags child-theme, scripts, wp-enqueue-script, wp-register-script Leave a comment

How do I get the $handle for all enqueued scripts?

August 3, 2022August 2, 2022 by Magenaut

Is there some way to get the $handle for each script that has been enqueued?

Categories Q&A, Wordpress Tags scripts, wp-enqueue-script Leave a comment
Older posts
Page1 Page2 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress