Filter not working – UserPro Forums https://forum.userproplugin.com/forums/topic/filter-not-working/feed/ Fri, 17 May 2024 10:47:08 +0000 https://bbpress.org/?v=2.6.2 en-US https://forum.userproplugin.com/forums/topic/filter-not-working/#post-17945 <![CDATA[Filter not working]]> https://forum.userproplugin.com/forums/topic/filter-not-working/#post-17945 Mon, 20 Jan 2014 11:32:36 +0000 themedutch 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.

]]>
https://forum.userproplugin.com/forums/topic/filter-not-working/#post-18011 <![CDATA[Reply To: Filter not working]]> https://forum.userproplugin.com/forums/topic/filter-not-working/#post-18011 Tue, 21 Jan 2014 01:18:53 +0000 admin Please show me a real world example that you have tried to append the filters. 🙂
Thanks!

]]>
https://forum.userproplugin.com/forums/topic/filter-not-working/#post-18054 <![CDATA[Reply To: Filter not working]]> https://forum.userproplugin.com/forums/topic/filter-not-working/#post-18054 Tue, 21 Jan 2014 07:46:08 +0000 themedutch 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 .= ‘' . __('TD Customer', THEME_SLUG) . '‘;
}
}

return $output;
}
add_filter(‘userpro_show_badges’, ‘theme_additional_badges’);

]]>
https://forum.userproplugin.com/forums/topic/filter-not-working/#post-18955 <![CDATA[Reply To: Filter not working]]> https://forum.userproplugin.com/forums/topic/filter-not-working/#post-18955 Sun, 26 Jan 2014 10:40:53 +0000 themedutch Any Idea’s?

]]>
https://forum.userproplugin.com/forums/topic/filter-not-working/#post-19183 <![CDATA[Reply To: Filter not working]]> https://forum.userproplugin.com/forums/topic/filter-not-working/#post-19183 Tue, 28 Jan 2014 08:13:04 +0000 themedutch 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.

]]>
https://forum.userproplugin.com/forums/topic/filter-not-working/#post-19214 <![CDATA[Reply To: Filter not working]]> https://forum.userproplugin.com/forums/topic/filter-not-working/#post-19214 Tue, 28 Jan 2014 15:07:36 +0000 admin 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 🙂

]]>