Advertisement
verygoodplugins

Untitled

Feb 6th, 2019
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.49 KB | None | 0 0
  1. // data to send in our API request
  2. $api_params = array(
  3.     'edd_action' => 'check_license',
  4.     'license'    => $license_key,
  5.     'item_name'  => urlencode( 'WP Fusion' ),
  6.     'author'     => 'Very Good Plugins',
  7.     'url'        => home_url(),
  8.     'crm'        => wp_fusion()->crm->name,
  9.     'integrations' => $integrations,
  10.     'version'    => WP_FUSION_VERSION
  11. );
  12. // Call the custom API.
  13. $response = wp_remote_post( WPF_STORE_URL, array(
  14.     'timeout'   => 30,
  15.     'sslverify' => false,
  16.     'body'      => $api_params
  17. ) );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement