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?
- What is best practice when escaping the_title()?
- If necessary, how should wp_get_attachment_image() and its parameters be escaped?
- Software for WordPress Theme and Plugin Development? [closed]
- How to override pluggable function in theme?
- Should we use get_template_part() in functions files instead of include_once?
- Reset positions of metaboxes in admin
- Sanitize and data validation with apply_filters() function
- Remove the word ‘Categories’ from wp_list_categories
- Using Bootstrap in themes
- Add a dropdown to theme customizer
- design and development workflow
- How to control initial wp_head() output?
- Any walker causes blank menu?
- How to change post thumbnail title and alt attributes to post title?
- Why might $input (Settings API) be coming through empty?
- add generated stylesheet from parent theme after child-themes style.css
- Creating Page Based on Category
- How to check if post has any tag?
- using wp_enqueue_script to attach jquery-ui
- Can not Remove Archives and Meta from Sidebar
- Get last modified date for menu link
- How to add multiple custom widget areas
- A theme that follows all the best practices to learn from?
- WordPress how to override function adjacent_posts_rel_link_wp_head() in link-template.php the correct way
- Change file name from wp_generate_attachment_metadata
- Change setting name in Customizer and keep the data
- CSS won’t style output of wp_nav_menu() correctly
- Creating multiple hooks for theme
- after_setup_theme, Global Variable and Theme Customizer
- How to make WP admin recognize a newly created child theme?
- WP_Customize_Color_Control omitting # symbol
- Theme translation not applying
- How to add filter the post thumbnail before save in database?
- Custom theme development additional pages
- How to set the currently active page in the menu including parents
- changing blog title to an image using filter function in child theme
- WordPress taxonomy and archive custom class
- Acivate all themes multisite wide automatically
- Set parent theme language with custom .mo files
- How to change the theme directory uri for localhost?
- What is the diferences between pure WordPress theme and Woocommerce theme? [closed]
- Should I create multiple sidebars, or use or one dynamic sidebar with logic to determine it’s abilities?
- Insert Rich Text Editor in theme?
- Customizer: get_preview_url() inside customize_save_after hook
- How to add custom meta box when you have a custom page template file
- Theme Check errors of theme code
- Pagination and multiple loops
- Does wordpress add their own classes into nav menus?
- Post archives link yields a 404 Not Found
- Getting white screen of death on category pages because of body_class() function
- Let user to upload multiple time
- get main URL from subdirectory with php
- Is_single not working properly in genesis
- Developing WordPress site behind a static site
- Code showing in wordpress post titles around website
- register_theme_directory() sees custom themes directory, but blank frontend
- how to call options on front end and add logo
- Jetpack Infinite Scroll Not Working
- After WP 4.6.1 Update , Blog page started giving 500 error
- How to share posts (and plugins) between existing site and new, separate dev/test installation?
- Duplicate WordPress site to subdirectory but use same db?
- Menu order of parent menu from perspective of child menu
- Conditional loop based on current page
- Theme customizer live preview JS- Trying to bind to an html image url without luck
- wp_deregister_script was called incorrectly
- Multiple Content Shortcodes
- Add the ability of changing background color of a theme [closed]
- Purchased Theme to Custom Made Theme? [closed]
- How to make website with many template that active [closed]
- Query for tag given slug
- Image Size wrong during upload