Is there a way to modify/adjust the meta boxes (Name/Web Address/Description) on the 'Add New Link' page? I'm trying to add some jQuery functionality to them but am unsure how to 'hook' into them.enter image description here

  • I'm unfamiliar with those metaboxes, are you perhaps referring to The Title, Permalink, and Content (first 3 main boxes / areas) of the Add New Post screen? Can you upload a screenshot pointing out what you mean maybe? – Howdy_McGee Jul 28 '14 at 15:50
  • These meta boxes are a part of the Links Manager plugin... – shapada Jul 28 '14 at 16:00
  • Ok, it's a tad off topic since it's plugin specific but let's just add some more information. Are you trying to add content to the metabox (such as instructions or more information), trying to remove things from the metabox (such as removing the title or deleting the metabox entirely), or are you trying to add jquery validation to the inputs? – Howdy_McGee Jul 28 '14 at 16:03
  • I'm trying to add jQuery validation as well as a button that changes all back slashes to forward slashes and spaces to %20. – shapada Jul 28 '14 at 16:15
  • You should use wp_enqueue_script() to add a script to your edit.php footer. You can then use that external script to manipulate the boxes however you'd like. As far as the slashes go, you can use the save_post hook and filters the $_POST data for the inputs you want to convert spaces and slashes. I'm not familiar with the plugin at hand so I'm not sure of it's specific hooks. – Howdy_McGee Jul 28 '14 at 16:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.