Skip to content

Snippet: 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' );
All PHP snippets should be added via child theme's functions.php file or via a plugin. We recommend Code Snippets (100% Free) or WPCode (sponsored)
Back To Top