Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.
when we try to add our own badge using your filter,
add_filter(‘userpro_show_badges’, ‘our_additional_badges’);
the badges will disappear including the assign badges and achievement badge.
Please show me a real world example that you have tried to append the filters. 🙂
Thanks!
Here you go:
function theme_additional_badges($user_id) {
if ( core_theme_is_plugin_active(‘woocommerce/woocommerce.php’) ) {
// Check if user is a paying customer
$paying_customer = get_user_meta( $user_id, ‘paying_customer’, true );
if ( $paying_customer ) {
$output .= ‘‘;
}
}
return $output;
}
add_filter(‘userpro_show_badges’, ‘theme_additional_badges’);
Ahmed, can you please take a look at this issu, we can’t get the hook to work in the latest updates. We need this feature to add a api purchase verification for mojomarketplaces, just like envato.
themedutch , please add your custom badge function to this function
addons/badges/functions/hooks-actions.php
Find: function userpro_badges_show($user_id){
add it before return $output;
That hook installed the custom badges, and you should append your custom badges to this filter too.
Thanks 🙂
You must be logged in to reply to this topic.