Skip to content

Instantly share code, notes, and snippets.

@Pross Pross/functions.php
Created Aug 30, 2018

Embed
What would you like to do?
<?php // added for highlighting
add_filter( 'wp_kses_allowed_html', function ( $allowedposttags, $context ) {
if ( $context == 'post' ) {
$allowedposttags['input']['value'] = 1;
}
return $allowedposttags;
}, 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.