Home Forums Plugin Support WP User Frontend Pro Help Edit Code

This topic is: resolved

This topic contains 2 replies, has 2 voices, and was last updated by  ronilagin 6 years, 1 month ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #3049

    ronilagin
    Participant
    Post count: 24

    Hello,

    How can I edit this code to not only check for 0 credits but expired ones as well?

    <?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 ) {
    include (TEMPLATEPATH . '/search-check-boxes.php');
    } else {
    include (TEMPLATEPATH . '/no-credits.php');
    }
    ?>

    #3050

    Tareq Hasan
    Keymaster
    Post count: 2831

    [php]
    if( WPUF_Subscription::has_user_error() ) {
    include (TEMPLATEPATH . ‘/no-credits.php');
    } else {
    include (TEMPLATEPATH . ‘/search-check-boxes.php');
    }
    [/php]

    #3055

    ronilagin
    Participant
    Post count: 24

    Thanks!

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

The topic ‘Help Edit Code’ is closed to new replies.