Viewing 1 replies (of 1 total)
  • Thread Starter toyomedia

    (@toyomedia)

    https://davidwalsh.name/wordpress-comment-tags

    I tried this

    function allow_pres() {
    	global $allowedtags;
    	$allowedtags['iframe'] = array(
    	'class'=>array(),
    	'title' => array(),
    	'line' => array(),
    	'width' => array(),
    	'height' => array(),
    	'frameborder' => array(),
    	'src' => array(),
    	'webkitallowfullscreen' => array(),
    	'mozallowfullscreen' =>array(),
    	'allowfullscreen' => array()
    	);
    }
    
    add_action('comment_post', 'allow_pres');

    I tried ‘comment_content’ and ‘init’ and ‘$note’ instead of ‘comment_post’ but none of them worked.

Viewing 1 replies (of 1 total)
  • The topic ‘How to add more tags $allowedtags’ is closed to new replies.