Posts by Codestar

414 posts Codestar
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $250,000+ on Envato Market
  • Sells items exclusively on Envato Market
  • Made it to the Authors' Hall of Fame
+7 more
Codestar
says

Congrats ;)

414 posts Codestar
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $250,000+ on Envato Market
  • Sells items exclusively on Envato Market
  • Made it to the Authors' Hall of Fame
+7 more
Codestar
says

Congrats ;)

414 posts Codestar
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $250,000+ on Envato Market
  • Sells items exclusively on Envato Market
  • Made it to the Authors' Hall of Fame
+7 more
Codestar
says

Congrats ;)

414 posts Codestar
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $250,000+ on Envato Market
  • Sells items exclusively on Envato Market
  • Made it to the Authors' Hall of Fame
+7 more
Codestar
says

I am developing “A Lightweight and easy-to-use WordPress Options Framework” http://codestarframework.com/https://github.com/Codestar/codestar-framework

414 posts Codestar
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $250,000+ on Envato Market
  • Sells items exclusively on Envato Market
  • Made it to the Authors' Hall of Fame
+7 more
Codestar
says

hmm, maybe you need this ?

function cs_download_item( $envato_api_url ) {

  if( ! function_exists( 'download_url' ) ) {
    require_once ABSPATH . 'wp-admin/includes/file.php';
  }

  $filename = 'theme.zip';
  $request = json_decode( wp_remote_retrieve_body( wp_remote_get( $envato_api_url ) ), true );
  $download_url = $request['download-purchase']['download_url'];
  $download_file = download_url( $download_url );

  header( 'Content-length:'. filesize( $download_file ) );
  header( 'Content-Type: application/zip');
  header( 'Content-Disposition: attachment; filename="'. $filename .'"' );
  header( 'Content-Transfer-Encoding: binary');

  readfile( $download_file );

  unlink( $download_file );

  exit();
}

cs_download_item( 'http://marketplace.envato.com/api/edge/USERNAME/API-KEY/download-purchase:PURCHASE-CODE.json' );

but add some callback checker for eg. is_wp_error, isset( $request ) for 0 risk :)

414 posts Codestar
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $250,000+ on Envato Market
  • Sells items exclusively on Envato Market
  • Made it to the Authors' Hall of Fame
+7 more
Codestar
says

Congrats! :D

414 posts Codestar
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $250,000+ on Envato Market
  • Sells items exclusively on Envato Market
  • Made it to the Authors' Hall of Fame
+7 more
Codestar
says

Better than february :)

414 posts Codestar
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $250,000+ on Envato Market
  • Sells items exclusively on Envato Market
  • Made it to the Authors' Hall of Fame
+7 more
Codestar
says

You can take a look this scripts

https://github.com/envato/envato-wordpress-toolkit
https://github.com/envato/envato-wordpress-toolkit-library

So, this class is great class-envato-protected-api.php list purchased items, download, etc. Also there is cache for api request. ;)

414 posts Codestar
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $250,000+ on Envato Market
  • Sells items exclusively on Envato Market
  • Made it to the Authors' Hall of Fame
+7 more
Codestar
says

My vote is DigitalOcean. I am happy with DO.

Recommended:

Ubuntu + WordPress stack. (for newbies) Ubuntu + Lamp (for normal users, lot of documentation) Ubuntu + Lemp (for pro users)

Do not use another linux systems because Ubuntu is best my opinion.

414 posts Codestar
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $250,000+ on Envato Market
  • Sells items exclusively on Envato Market
  • Made it to the Authors' Hall of Fame
+7 more
Codestar
says

Congratulations!

by
by
by
by
by
by