Skip to content

Instantly share code, notes, and snippets.

@mklasen
mklasen / class-enable-software-updates-for-free-downloads.php
Created October 8, 2019 14:19
EDD: Enable software updates for free downloads
<?php
class Enable_Software_Updates_For_Free_Downloads {
public function __construct() {
$this->hooks();
}
public function hooks() {
add_filter( 'edd_sl_generate_license_key', array( $this, 'generate_free_license_key' ), 10, 5 );
add_filter( 'edd_sl_check_license_status', array( $this, 'skip_free_download_license_check' ), 10, 2 );