Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: img tags


AphelionZ
Participant

@aphelionz

I just tried plugin-izing that but it didn’t work either… what are we missing?

<?php

/*

Plugin Name: Allow <img> tags in posts

Plugin URI: https://bbpress.org/forums/topic/149

*/

function outlet_bb_allowed_tags() {

$tags = array(

'a' => array(

'href' => array(),

'title' => array(),

'rel' => array()),

'img' => array(

'src' => array(),

'alt' => array(),

'title' => array()),

'blockquote' => array('cite' => array()),

'br' => array(),

'code' => array(),

'em' => array(),

'strong' => array(),

'ul' => array(),

'ol' => array(),

'li' => array()

);

return apply_filters( 'bb_allowed_tags', $tags );

}

add_filter( 'bb_allowed_tags', 'outlet_bb_allowed_tags', -1, 3);

?>

Skip to toolbar