Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi

    NO. but you can use this function:

    function get_download_limit() {
        global $post;
    
        if ( ! $post ) return;
    
        $product = wc_get_product( $post->ID );
    
        if( ! $product ) return;
    
        $dl = get_post_meta( $product->get_id(), '_download_limit', true );
        $dl = ! empty( $dl ) ? $dl : 0;
    
        return $dl;
    }

    Usage:

    <?php echo get_download_limit(); ?>

    Good luck

    Rynald0s

    (@rynald0s)

    Automattic Happiness Engineer

    Howdy!

    We haven’t heard back from you in a while, so I’m going to go ahead and mark this thread as resolved. If you have any other questions please start a new thread.

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Get download limit function?’ is closed to new replies.