Skip to content

Magenaut

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

javascript

Validating Custom Meta Box Values & Required Fields

August 3, 2022August 2, 2022 by Magenaut

Something which I have never seen covered is the best way to validate that specific form fields are filled out correctly for custom post type meta boxes.

Categories Q&A, Wordpress Tags custom-field, customization, javascript, jquery Leave a comment

Modify Custom Field in Media Library using JavaScript

August 3, 2022August 2, 2022 by Magenaut

I’ve added a custom field into my media attachments:

Categories Q&A, Wordpress Tags javascript, jquery, media-library, media-modal Leave a comment

Customizer – instantiating settings and controls via javascript

August 3, 2022August 2, 2022 by Magenaut

I am trying to dynamically load a ton of controls based on the value of a dropdown and I do not want to load them in via PHP because the initial page load takes well over 15 seconds. I have a lot of controls.

Categories Q&A, Wordpress Tags javascript, theme-customizer Leave a comment

Modifying a JS file with data from plugin settings

August 3, 2022August 2, 2022 by Magenaut

I have a plugin that, among other things, has a javascript file that requires a few user specific settings. What would be the best way to get those settings into javascript from the plugin’s settings parameters?

Categories Q&A, Wordpress Tags javascript, options, plugins Leave a comment

Ajax template: how to handle head section

August 3, 2022August 2, 2022 by Magenaut

I know it’s easy stuff, but I’m new to this and I can’t understand which is the best approach.

Categories Q&A, Wordpress Tags ajax, javascript, mobile, php Leave a comment

What does wp-embed.min.js do in WordPress 4.4?

August 3, 2022August 2, 2022 by Magenaut

Question

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

Could the WP script/style loader be used to concatenate and gzip scripts and styles in the front-end?

August 3, 2022August 2, 2022 by Magenaut

WP has a nice javascript loader included in wp-admin:
http://core.trac.wordpress.org/browser/tags/3.0.4/wp-admin/load-scripts.php

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

Trigger Javascript on Gutenberg (Block Editor) Save

August 3, 2022August 2, 2022 by Magenaut

So I have a metabox which I want to trigger some Javascript when a post is saved (to refresh the page in this use case.)

Categories Q&A, Wordpress Tags block-editor, javascript, metabox Leave a comment

Add async script

August 3, 2022August 2, 2022 by Magenaut

I am working on a plugin that has to inject a script on pages (something like RefTagger), which would be easy using wp_enqueue_script, but there are two reasons I cannot do that: the script tag has to have an ID and it should be executed asynchronously.

Categories Q&A, Wordpress Tags javascript, plugin-development Leave a comment

How execute shortcode with javascript

August 3, 2022August 2, 2022 by Magenaut

Suppose to have this shortcode:

Categories Q&A, Wordpress Tags html, javascript, shortcode Leave a comment
Older posts
Newer posts
← Previous Page1 … Page77 Page78 Page79 … Page81 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