Skip to content

Instantly share code, notes, and snippets.

View leobard's full-sized avatar

Leobard leobard

View GitHub Profile
@damianwajer
damianwajer / wp-allowed-html.php
Created November 5, 2015 15:27
[WordPress] Allow more HTML tags and attributes in post context.
<?php
/**
* Filter allowed HTML elements.
*
* @param $allowedposttags
* @param $context
*
* @return array
*/
function prefix_filter_allowed_html( $allowedposttags, $context ) {