This topic contains 3 reply and 2 voices, and was last updated by Tareq Hasan 6 years, 6 months ago
Viewing 3 Posts - 1 through 3 (of 3 total)
Author Posts
March 31, 2013 at 7:23 am 1662
Tareq Hasan Hi, Can you assist with writing a conditional statement that says if user's credits are 0, display this, if anything more than 0, display that. Much appreciated!  Your plugin rocks :)
March 31, 2013 at 7:45 am 1663
Tareq Hasan Tareq Hasan

May be thats what you need
[php]
$post_count = get_user_meta( get_current_user_id(), ‘wpuf_sub_pcount’, true );
$post_count = $post_count ? intval( $post_count ) : 0;

if ( $post_count ) {
echo ‘You have post left: ‘ . $post_count;
} else {
echo ‘Post count is empty’;
}
[/php]

If you like the plugin, perhaps you could give us a testimonial that we can stick into the plugin page? 😀

March 31, 2013 at 6:03 pm 1686
ronilagin ronilagin

I would be happy to leave a testimonial as long as you don’t get upset with all my questions! 😉

March 31, 2013 at 6:14 pm 1690
Tareq Hasan Tareq Hasan

🙄

Viewing 3 Posts - 1 through 3 (of 3 total)