success ) { $url = 'https://marketplace.envato.com/api/edge/wpexpertsio/mzx6405atgz9wd4wjy0grozeh8e6sdhl/verify-purchase:'.$_POST['purchase_key'].'.json'; $verify_purchase = wp_remote_get( esc_url_raw( $url ) ); $get_ticket_response = json_decode( wp_remote_retrieve_body( $verify_purchase ), true ); if ( !empty( $get_ticket_response['verify-purchase'] ) ) { if(isset($get_ticket_response['verify-purchase']['item_id'])){ $item_details = wp_remote_get( esc_url_raw('https://marketplace.envato.com/api/edge/item:'.$get_ticket_response['verify-purchase']['item_id'].'.json')); $detials=json_decode(wp_remote_retrieve_body($item_details)); /* echo '
';
            			print_r( $detials);
            			echo '
'; */ $html = ''; $html .= '
'; $html .= ''; $html .= '
'; echo $html; //echo ''; } $now = date( 'd-m-Y' ); $supported_until = date( 'd-m-Y', strtotime( $get_ticket_response['verify-purchase']['supported_until'] ) ); $current_date = new DateTime( $now ); $end_date = new DateTime( $supported_until ); $interval = $current_date->diff( $end_date ); if ( strtotime( $supported_until ) > strtotime( $now ) ) { $html = ''; $html .= '
'; $html .= '
'; foreach( $get_ticket_response['verify-purchase'] as $key => $value ) { if ( $key == 'item_id' ) continue; if ( $key == 'buyer' ) { $buyer = ucfirst( $get_ticket_response['verify-purchase']['buyer'] ); $html .= '

'; $key_item = ucfirst( str_replace( '_', ' ',$key ) ); $html .= ''.$key_item.''.': '.$value.''; $html .= '

'; } elseif ( $key == 'created_at') { $created_at = ucfirst( $get_ticket_response['verify-purchase']['created_at'] ); $html .= '

'; $key_item = ucfirst( str_replace( '_', ' ',$key ) ); $html .= ''.$key_item.''.': '.date( 'd-m-Y', strtotime( $value ) ); $html .= '

'; } elseif ( $key == 'supported_until' ) { $supported_until = ucfirst( $get_ticket_response['verify-purchase']['supported_until'] ); $html .= '

'; $key_item = ucfirst( str_replace( '_', ' ',$key ) ); $html .= ''.$key_item.''.': '.date( 'd-m-Y', strtotime( $value ) ); $html .= '

'; } else { $html .= '

'; $key_item = ucfirst( str_replace( '_', ' ',$key) ); $html .= ''.$key_item.''.': '.$value.'
'; $html .= '

'; } } $html .= '

Days Remaining'.': Your support will expire after '.$interval->days.' days!

'; $html .= '
'; echo $html; } else { $html = ''; $html .= '
'; $html .= '

Your support has been expired.

'; $html .= '
'; $html .= '
'; echo $html; } } else { $html = ''; $html .= '
'; $html .= '

Your purchase is not verified! Try Again

'; $html .= '
'; echo $html; } } else { // reCaptcha Checkbox $html = ''; $html .= '
'; $html .= '

Please, click on the reCaptcha box. Go Back

'; $html .= '
'; echo $html; } } ?>
WordPress PDF Generator Plugin Free Download - WPExperts.io

WordPress PDF Generator Plugin

Download Free WordPress PDF Generator Plugin

 

Information & Requirements

  • WordPress 4.4 or higher
  • PHP version 5.4 or higher
View documentation for more info

 

WP Experts launched WP PDF Generator Plugin  Simply helps you to get your web page download as PDF.

Easy HTML to pdf Plugin that save your webpage as pdf format. You can use php function as well as shortcode to display pdf download button. You can select different icons and text from backend for your download button.In this plugin we are using service of freehtmltopdf.com to generate pdf.

Screenshots

Changelogs

Regular License Free

  • Quality checked by Wordpress.org
  • Free updates
  • Free support at Wordpress.org Forum
Get Now

Demo & Documentation

Details

  • VERSION
  • RELEASED:
  • Last updated:
  • Downloads:
  • Changelog