Skip to content
Site Under Re-Design: We're updating & improving the docs! Some layouts or content may look broken or inconsistent during this process. If you’re unable to find an article, please use the search bar while we restructure and optimize the sidebar navigation.

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)
Related Snippets
Back To Top