Skip to content

Commit

Permalink
release: adds filter
Browse files Browse the repository at this point in the history
Adds key filter
  • Loading branch information
selul committed Jun 10, 2020
1 parent 18a5197 commit 6fe1e4b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Modules/Licenser.php
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,7 @@ private function get_version_data() {
if ( isset( $update_data->banners ) ) {
$update_data->banners = (array) $update_data->banners;
}

return $update_data;
}

Expand Down Expand Up @@ -696,6 +697,7 @@ public function pre_set_site_transient_update_plugins_filter( $_transient_data )
$_transient_data->response[ $this->product->get_slug() . '/' . $this->product->get_file() ] = $api_response;
}
}

return $_transient_data;
}

Expand Down Expand Up @@ -797,6 +799,7 @@ public function load( $product ) {
if ( false !== $namespace ) {
add_filter( 'themeisle_sdk_license_process_' . $namespace, [ $this, 'do_license_process' ], 10, 2 );
add_filter( 'product_' . $namespace . '_license_status', [ $this, 'get_license_status' ] );
add_filter( 'product_' . $namespace . '_license_key', [ $this->product, 'get_license' ] );
if ( defined( 'WP_CLI' ) && WP_CLI ) {
\WP_CLI::add_command( $namespace . ' activate', [ $this, 'cli_activate' ] );
\WP_CLI::add_command( $namespace . ' deactivate', [ $this, 'cli_deactivate' ] );
Expand Down

0 comments on commit 6fe1e4b

Please sign in to comment.