The “xclusive_render_menu” filter allows to modify the default social menu display. Version 1.1.0+.

A plugin (or theme) can add a filter with the code:

<?php add_filter( 'xclusive_render_menu', 'filter_function_name' ); ?>

The hook is located in the _inc/custom.php file.


// apply filter
function filter_xclusive_render_menu( $nav_menu, $args, $menu_items ) {
	$nav_menu = '<li class="social-link social-link-wordpress"><a href="http://profiles.wordpress.org" title="WordPress" rel="external">WordPress</a></li>';

	$nav_menu .= '<li class="social-link social-link-twitter"><a href="https://twitter.com/" title="Twitter" rel="external">Twitter</a></li>';
	return $nav_menu;
add_filter('xclusive_render_menu', 'filter_xclusive_render_menu', 20, 3);

Note: $nav_menu is a string, $args is an array, $menu_items is an array.

Leave a Reply

Your email address will not be published. Required fields are marked *