Snippets: Enable HTML For Staff Position

By default the staff position output is escaped for security so HTML won't work. If you need HTML for the position here is a snippet you can use. This will still sanitize your output it's just a bit let efficient.

function myprefix_allow_staff_position_html( $position ) {
	if ( $position ) {
		return html_entity_decode( $position );
	}
}
add_filter( 'wpex_staff_entry_position', 'myprefix_allow_staff_position_html' );

Snippet Type: PHP

Posted Under: Staff

All PHP snippets should be added via a child theme's functions.php file.