Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Plugin: Using the strike tag


LMD
Participant

@louisedade

Uh, you don’t need to create separate functions for each tag! You are only extending the contents of an array.

I use this home-grown plugin for all the extra tags I want to add (edited for readability).

<?php
// Allow extra html tags, even depreciated
function allow_extra_tags( $tags )
{
$tags['a'] = array(
'href' => array(),
'title' => array(),
'rel' => array(),
'target' => array()
);
$tags['i'] = array();
$tags['b'] = array();
$tags['del'] = array();
$tags['strike'] = array();
$tags['img'] = array(
'src'=> array(),
'alt' => array(),
'width' => array(),
'height' => array()
);

return $tags;
}
add_filter( 'bb_allowed_tags', 'allow_extra_tags' );
?>

Much simpler and easier to maintain.

Skip to toolbar