Advertisement
nshelper

Untitled

Jul 8th, 2023
627
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.01 KB | None | 0 0
  1. <?php
  2.  
  3.     $license_key    =   'XXXXXX';
  4.  
  5.  
  6.     include_once ( 'wp-load.php' );
  7.    
  8.     global $wp_version;
  9.    
  10.     $args = array(
  11.                         'woo_sl_action'         => 'activate',
  12.                         'product_unique_id'     => APTO_PRODUCT_ID,
  13.                         'licence_key'           => $license_key,
  14.                         'domain'                => APTO_INSTANCE,
  15.                     );
  16.     $request_uri    = APTO_APP_API_URL . '?' . http_build_query( $args , '', '&');
  17.     $data           = wp_remote_get( $request_uri,  array(
  18.                                                             'timeout'     => 20,
  19.                                                             'user-agent'  => 'WordPress/' . $wp_version . '; APTO/' . APTO_VERSION .'; ' . get_bloginfo( 'url' ),
  20.                                                             ) );
  21.                                                            
  22.                                                            
  23.     print_r ( $data );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement