$license_value ) { $status = ( empty( $license_keys_option[$license_id]['status'] ) ) ? '' : $license_keys_option[$license_id]['status']; $license_call = 'activate_license'; if ( ! empty( $new['license_key_deactivate'] ) ) { $license_call = ( $license_id == $new['license_key_deactivate'] ) ? 'deactivate_license' : $license_call; unset( $new['license_key_deactivate'] ); } $api_params = array( 'edd_action'=> $license_call, 'license' => $new[$license_id]['key'], 'item_name' => urlencode( $license_value['plugin_name'] ), // the name of our product in EDD 'url' => home_url() ); // Call the custom API. $response = wp_remote_post( 'https://alphabetthemes.com', array( 'timeout' => 15, 'sslverify' => false, 'body' => $api_params ) ); // make sure the response came back okay if ( is_wp_error( $response ) ) { return false; } // decode the license data $new[$license_id]['status'] = json_decode( wp_remote_retrieve_body( $response ) ); } return $new; } public function abc_documentation() { $abc_url = 'https://alphabetthemes.com'; ?>