An array of tags that a theme should allow for cerntain places.
<?php
/**
* Allowed tags in the theme only if you want to use it as global variable
*/
$prefix_allowed_tags = array(
'a' => array(
'href' => array(),
'title' => array(),
'target' => array(),
),
'em' => array(),
'strong' => array(),
'br' => array(),
'i' => array(
'class' => array()
)
);
if ( ! function_exists( 'prefix_allowed_tags' ) ) {
/**
* Set allowed html tags in this theme
* @return array
*/
function prefix_allowed_tags() {
$tags = array(
'a' => array(
'href' => array(),
'title' => array(),
'target' => array(),
),
'em' => array(),
'strong' => array(),
'br' => array(),
'i' => array(
'class' => array(),
),
);
return $tags;
}
}