This seems to have done the trick:
// Display our list of font options
$allowed_html = array(
'option' => array(
'value' => array(),
'selected' => array()
),
);
echo wp_kses($fontListStr, $allowed_html);
Related Posts:
- What is the safe way to print tracking code / pixel code before tag or tag
- Can I create customizer setting that can handle plugin shortcode?
- How to sanitize select box values in post meta?
- Theme Review: post thumbnail, header image, content width
- what’s meaning of it when submit a theme?
- Questions about WordPress.org theme review
- esc_url not working within add_settings_field callback
- Formatting ?
- Which theme foundry has clean coded themes, where code is poetry [closed]
- Whats the safest way to output custom JavaScript and Css code entered by the admin in the Theme Settings?
- Don’t understand why theming is so strange and twisted [closed]
- get_page_template returning nothing
- How can I optimize this code? [closed]
- How to escape multiple attribute at once in WordPress?
- Do I need to include a textdomain if my theme doesn’t support translation?
- Contact Form Security
- Where do you add code in custom fuctions so it works on a specific page?
- How to allow certain PHP functions when using sanitize_callback in the word press customizer
- Is there any solution, ide/tool etc., for automatic escaping for WordPress?
- How to code custom special page
- How to safely return the HTML?
- restrain filter on get_the_excerpt to queried item in stead of current post
- Data Validation & Sanitization for Big HTML Blocks
- Correct form of escaping and localization – functions.php breadcrumbs
- wp_kses allow checkbox class and checked
- New theme HTML5 Support for Search in WordPress 4.4
- Trouble creating custom sanitization function when uploading video files
- How to use esc_attr__() function properly to translate a variable that contains string?
- Website Developer has gone missing! How to gain full access of your code from a WordPress website?
- How To Add New Option Types To Option Tree?
- How to limit wordpress menu depth in admin panel
- Trigger Customizer saving process with Javascript only
- Comment form not display properly?
- How to add menu support to a theme?
- Setting up partial Right-to-Left admin interface
- Moving functionality from functions.php to classes?
- Registering Sidebars and Sidebar Widgets. Sidebar Widgets Not Displaying
- Extend walker – navigation, adding data attribute to a tag
- How to display category specific post content on a page
- Move my theme style.css into a folder
- Gutenberg Reusable Block as part of WordPress Theme page
- Why is $GLOBALS[‘content_width’] needed if site is responsive?
- Does WordPress count as a means to learn web development? [closed]
- current-menu-item class not working
- Prevent theme from activating [duplicate]
- Messing up with transient API – getting flushed on refresh
- Correctly using wp_head()
- How to sanitize user input?
- Cannot figure out how to overwrite files in child theme
- Inheritance of parent theme plugin files in a child theme
- Display a list of certain categories by ID
- Implementing FancyBox
- Single Page Design, Storing in Theme Options
- How to append to menu items selectively
- Working with a WP Starter theme
- Should I change text-domain of TGM library inside theme?
- tag is being auto inserted
- “Bad element for masonry: undefined” why this error us occuring? [closed]
- Scroll to position on page for category pages only — woocommerce
- How remove render blocking css from wordpress when you build a theme?
- Displaying details of a post in a sidebar
- How to upload/update theme from local – bitbucket – shared hosting?
- Multi-page posts: A subdirectory for each post?
- Remove “You are using WordPress 3.2.1” from Right Now Dashboard Widget
- How do I get the trackback count of a post in wordpress without writing an SQL query?
- Call to require(‘../../../wp-blog-header.php’) results in 404 error?
- Where do files uploaded via Media Manager get stored in MU?
- Will my site get messed up when the wordpress theme updates if I edited the html code in the editor to change footer?
- Have the homepage look different to index.php without a static page
- the_post_thumbnail() get the URL to the “medium” sized image
- How to style bootstrap container in wordpress theme?
- Wamp Server error on running wordpress theme on localhost. How do I fix this error? [closed]
- $_POSTing to and modifying the WP search results page
- Confused by the behaviour of “front page” / “home” templates
- How to Grab first Image from some Chosen Categories
- Get themes’s images path in WordPress Multisite
- Get video from the post on homepage
- WordPress Themes Directory: Template which hits the standards?
- How to get URL of category of a custom post?
- get_avatar() is not working in my custom theme
- Getting post URL within custom content template
- When I save changes for css and js in my WP localhost env windows 10 the changes don’t take effects immediately!
- Updatable theme developing
- Block validation failed for `core/pullquote` after adding theme support for editor-color-palette
- makeing a terms of use page that is part of the theme
- Different templates for each category level
- Child theme in separate WordPress Install
- Display problems in admin dashboard when creating a new theme from scratch
- Using Customizer value in an external PHP file inside a theme
- How to add drop symbol to parent nav items which have child
- How to avoid Ajax in wordpress theme in making mulitple request?
- Enqueue Stylesheets After Theme’s “rtl.css”
- WordPress 3.5 + Foundation 5 not working on IE9
- Using wp_enqueue_script with social media buttons?
- Want to include ad code after related post
- How can disable function wp_link_dialog()
- Pagination adds product to cart Woo-Commerce
- Onepage with shortcodes
- How to create full header but keep content narrow
- Theme’s featured image option is not showing up