Nav menu shortcodes not rendered
-
Hello,
I am using the ultimate member nav menu shortcodes (i.e. {user_avatar_small} and {user_avatar_small} {username} ) to create a new WP menu and am using it for one of my customizations which displays a nav menu using thewp_nav_menu
to display a menu on the admin side for a custom user role.The customization was working fine at first but in some of the recent updates of the plugin, it has stopped working and I see the raw shortcode text {user_avatar_small} itself in the menu.
On debugging a little on my own, I found that the callback function responsible for replacing the shortcode text with the appropriate image and other usermeta is not being executed for my custom user role altough the add filter code is executed.
For the time being I am using the following code to handle the situation
echo UM()->shortcodes()->convert_user_tags( "{user_avatar_small}" );
But it would be great if you could help me resolve the issue so my existing customization works.
- The topic ‘Nav menu shortcodes not rendered’ is closed to new replies.