So how to disable the sanitizing for just this field without breaking the default?
It turns out to be so simple, there's an Advanced tab on the settings for the custom textarea field where you can add an Attribute. The "sanitize_callback" with the value "none" is one such Attribute. So that's really all you have to do.
No longer do I need to edit the sanitizer.php file and comment out the textarea field on line 89 everytime the metabox plugin gets updated!
I used to have to comment out line #89 in the plugin sanitizer.php file every time the Metabox plugin got updated :-(
Below is a short video from Anh Tran the metabox.io developer made showing how to set the textarea custom field attribute "sanitize_callback" to "none"
20 March, 2020 - Loom Recording — Watch Video
Limit search for phrases by using " " around the phrase
You will get an email the morning after we post a new Code Snippet
After creating a child category I wanted to remove the parent category from 30 posts. I finally searched for “how to remove a post category in bulk edit in wordpress” and and lo and behold the second result led me to this plugin. It works perfectly. I’m only sorry I […]Read More
I came across an Elementor vs Beaver Builder comparison review that was published in August 2020. While I am pretty biased in favor of the Beaver Builder platform the reviewer seemed to favor Elementor. If you are trying to decide which page builder platform to use I’d encourage you take […]Read More
Ever want to provide your readers with email updates to your website? WordPress’ built in RSS feed functionality provides an easy way to provide the content to email newsletter services like Mailchimp or Mailerlite. But what if you want to create email updates that don’t include all your new posts, […]Read More
I made an animated gif screenshot recording to demonstrate a code snippet, but I wanted to resize the image and make it loop. I found a useful website that has easy tools to do that. I reduced the size by 50% and made it auto-loop 30x. Then optimized it to […]Read More
click the green switch at the top of the screenshots to compare the WordPress vs the Static HTML versions of the same website the static version is live at: http://halcyonlearning.com/ (This post was viewed 204 times) in the last month.)Read More
Leave a Reply