This filter allows you to change the HTML elements that myCRED will allow in the history shortcode.

This filter is part of a depreciated feature in myCRED. As of version 1.7, myCRED uses wp_kses_post to sanitize fields and with that allow the usage of HTML elements that you in post content fields.

Available since version 1.1


Param Type Required Description
$allowed array Yes

Array of HTML elements and their attributes that are allowed to be used.

Used By

Package Prio. Description
Not used by any built-in package.


Example 1: Change the allowed HTML elements to only accept paragraphs and Emphasized text.