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
The Start of a New Website Project Master Roofing Company is a family-owned and operated Oakland roofing contractor with nearly 40 years experience of servicing residential and commercial clients in and around the San Francisco Bay Area. They had a Yelp page, but they didn’t have their own website. The […]Read More
WordPress is an award-winning web software, used by millions of webmasters worldwide for building their website or blog. SiteGround is proud to host this particular WordPress installation and provide users with multiple resources to facilitate the management of their WP websites: Expert WordPress Hosting SiteGround provides superior WordPress hosting focused […]Read More
Normally putting the URL of a pdf on a line by itself doesn’t display the pdf on a WordPress page, and if you use the add media button and paste the URL for the pdf into the URL field, you get a link that will open the pdf, but the pdf does not display on the page itself,Read More
Recently a reader raised a question in a comment to a previous post. He was confused about how to move an existing site to Godaddy Managed WordPress Hosting. Having done this several dozen times now I’ve developed some “best practices” and work-arounds I can share.Read More
Google has started rolling out filtering for Google searches from mobile devices. If you site doesn’t meet the criteria for mobile-friendly, your site won’t show up in the search results no matter how relevant your page is to the search. As more folks are visiting websites using smartphones and tablets […]Read More