Show Total Number Of Registered Users By User Role
-
I am not sure if you’ll see it on a previous closed post so I will ask here so it’s fresh.
Previously, I had my member directory set to display the total number of registered members, and then the total number of registered members by specific user role.
They all worked fine.
This is the shortcode used
[total_user_count role=”um_basic”]
[total_user_count role=”um_premium”]So the shortcodes would show the number itself. Now it’s just showing the whole shortcode.
In a previous thread you (Champ) provided a wp hook add filter for something that needed to go in the scripts.js or customizer but the theme doesn’t have that js file, and the customizer section has styles.css, theme-defaults.php and customizer.php and those throw back and error and show the string on the actual page.
wp.hooks.addFilter( ‘um_member_directory_generate_header’, ‘um_customizations’, function( generate ) {
generate = true;
return generate;
}, 10 );I don’t know where to put that and whether I even need it if I can use the shortcodes…and why they are not working.
- The topic ‘Show Total Number Of Registered Users By User Role’ is closed to new replies.