Skip to content

Commit aaeffb1

Browse files
Removed PHP examples for now
1 parent db62b68 commit aaeffb1

File tree

9 files changed

+0
-579
lines changed

9 files changed

+0
-579
lines changed

source/includes/v3/_coupons.md

-61
Original file line numberDiff line numberDiff line change
@@ -126,35 +126,6 @@ data = {
126126
print(wcapi.post("coupons", data).json())
127127
```
128128

129-
```php
130-
<?php
131-
$data = array(
132-
'coupon' => array(
133-
'code' => 'new-coupon',
134-
'type' => 'percent',
135-
'amount' => '10',
136-
'individual_use' => true,
137-
'product_ids' => array(),
138-
'exclude_product_ids' => array(),
139-
'usage_limit' => '',
140-
'usage_limit_per_user' => '',
141-
'limit_usage_to_x_items' => '',
142-
'expiry_date' => '',
143-
'enable_free_shipping' => false,
144-
'product_category_ids' => array(),
145-
'exclude_product_category_ids' => array(),
146-
'exclude_sale_items' => true,
147-
'minimum_amount' => '100.00',
148-
'maximum_amount' => '0.00',
149-
'customer_emails' => array(),
150-
'description' => ''
151-
)
152-
);
153-
154-
print_r($woocommerce->coupons->create($data));
155-
?>
156-
```
157-
158129
```ruby
159130
data = {
160131
coupon: {
@@ -248,10 +219,6 @@ WooCommerce.get('coupons/529', function(err, data, res) {
248219
print(wcapi.get("coupons/529").json())
249220
```
250221

251-
```php
252-
<?php print_r($woocommerce->coupons->get(529)); ?>
253-
```
254-
255222
```ruby
256223
woocommerce.get("coupons/529").parsed_response
257224
```
@@ -315,10 +282,6 @@ WooCommerce.get('coupons', function(err, data, res) {
315282
print(wcapi.get("coupons").json())
316283
```
317284

318-
```php
319-
<?php print_r($woocommerce->coupons->get()); ?>
320-
```
321-
322285
```ruby
323286
woocommerce.get("coupons").parsed_response
324287
```
@@ -450,18 +413,6 @@ data = {
450413
print(wcapi.put("coupons/529", data).json())
451414
```
452415

453-
```php
454-
<?php
455-
$data = array(
456-
'coupon' => array(
457-
'amount' => '5'
458-
)
459-
);
460-
461-
print_r($woocommerce->coupons->update(529, $data));
462-
?>
463-
```
464-
465416
```ruby
466417
data = {
467418
coupon: {
@@ -584,10 +535,6 @@ data = {
584535
print(wcapi.put("coupons/bulk", data).json())
585536
```
586537

587-
```php
588-
589-
```
590-
591538
```ruby
592539
data = {
593540
coupons: [
@@ -718,10 +665,6 @@ WooCommerce.delete('coupons/529/?force=true', function(err, data, res) {
718665
print(wcapi.delete("coupons/529?force=true").json())
719666
```
720667

721-
```php
722-
<?php print_r($woocommerce->coupons->delete(529, true)); ?>
723-
```
724-
725668
```ruby
726669
woocommerce.delete("coupons/529?force=true").parsed_response
727670
```
@@ -768,10 +711,6 @@ WooCommerce.get('coupons/count', function(err, data, res) {
768711
print(wcapi.get("coupons/count").json())
769712
```
770713

771-
```php
772-
<?php print_r($woocommerce->coupons->get_count()); ?>
773-
```
774-
775714
```ruby
776715
woocommerce.get("coupons/count").parsed_response
777716
```

source/includes/v3/_customers.md

-85
Original file line numberDiff line numberDiff line change
@@ -178,45 +178,6 @@ data = {
178178
print(wcapi.post("customers", data).json())
179179
```
180180

181-
```php
182-
<?php
183-
$data = array(
184-
'customer' => array(
185-
'email' => '[email protected]',
186-
'first_name' => 'John',
187-
'last_name' => 'Doe',
188-
'username' => 'john.doe',
189-
'billing_address' => array(
190-
'first_name' => 'John',
191-
'last_name' => 'Doe',
192-
'company' => '',
193-
'address_1' => '969 Market',
194-
'address_2' => '',
195-
'city' => 'San Francisco',
196-
'state' => 'CA',
197-
'postcode' => '94103',
198-
'country' => 'US',
199-
'email' => '[email protected]',
200-
'phone' => '(555) 555-5555'
201-
),
202-
'shipping_address' => array(
203-
'first_name' => 'John',
204-
'last_name' => 'Doe',
205-
'company' => '',
206-
'address_1' => '969 Market',
207-
'address_2' => '',
208-
'city' => 'San Francisco',
209-
'state' => 'CA',
210-
'postcode' => '94103',
211-
'country' => 'US'
212-
)
213-
)
214-
);
215-
216-
print_r($woocommerce->customers->create($data));
217-
?>
218-
```
219-
220181
```ruby
221182
data = {
222183
customer: {
@@ -333,10 +294,6 @@ WooCommerce.get('customers/2', function(err, data, res) {
333294
print(wcapi.get("customers/2").json())
334295
```
335296

336-
```php
337-
<?php print_r($woocommerce->customers->get(2)); ?>
338-
```
339-
340297
```ruby
341298
woocommerce.get("customers/2").parsed_response
342299
```
@@ -413,10 +370,6 @@ WooCommerce.get('customers', function(err, data, res) {
413370
print(wcapi.get("customers").json())
414371
```
415372

416-
```php
417-
<?php print_r($woocommerce->customers->get()); ?>
418-
```
419-
420373
```ruby
421374
woocommerce.get("customers").parsed_response
422375
```
@@ -574,24 +527,6 @@ data = {
574527
print(wcapi.put("customers/2", data).json())
575528
```
576529

577-
```php
578-
<?php
579-
$data = array(
580-
'customer' => array(
581-
'first_name' => 'James',
582-
'billing_address' => array(
583-
'first_name' => 'James'
584-
),
585-
'shipping_address' => array(
586-
'first_name' => 'James'
587-
)
588-
)
589-
);
590-
591-
print_r($woocommerce->customers->update(2, $data));
592-
?>
593-
```
594-
595530
```ruby
596531
data = {
597532
customer: {
@@ -877,10 +812,6 @@ data = {
877812
print(wcapi.put("customers/bulk", data).json())
878813
```
879814

880-
```php
881-
882-
```
883-
884815
```ruby
885816
data = {
886817
customers: [
@@ -1061,10 +992,6 @@ WooCommerce.delete('customers/2', function(err, data, res) {
1061992
print(wcapi.delete("customers/2").json())
1062993
```
1063994

1064-
```php
1065-
<?php print_r($woocommerce->customers->delete(2)); ?>
1066-
```
1067-
1068995
```ruby
1069996
woocommerce.delete("customers/2").parsed_response
1070997
```
@@ -1105,10 +1032,6 @@ WooCommerce.get('customers/2/orders', function(err, data, res) {
11051032
print(wcapi.get("customers/2/orders").json())
11061033
```
11071034

1108-
```php
1109-
<?php print_r($woocommerce->customers->get_orders(2)); ?>
1110-
```
1111-
11121035
```ruby
11131036
woocommerce.get("customers/2/orders").parsed_response
11141037
```
@@ -1270,10 +1193,6 @@ WooCommerce.get('customers/2/downloads', function(err, data, res) {
12701193
print(wcapi.get("customers/2/downloads").json())
12711194
```
12721195

1273-
```php
1274-
<?php print_r($woocommerce->customers->get_downloads(2)); ?>
1275-
```
1276-
12771196
```ruby
12781197
woocommerce.get("customers/2/downloads").parsed_response
12791198
```
@@ -1343,10 +1262,6 @@ WooCommerce.get('customers/count', function(err, data, res) {
13431262
print(wcapi.get("customers/count").json())
13441263
```
13451264

1346-
```php
1347-
<?php print_r($woocommerce->customers->get_count()); ?>
1348-
```
1349-
13501265
```ruby
13511266
woocommerce.get("customers/count").parsed_response
13521267
```

source/includes/v3/_index.md

-4
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,6 @@ WooCommerce.get('', function(err, data, res) {
7373
print(wcapi.get("").json())
7474
```
7575

76-
```php
77-
<?php print_r($woocommerce->index->get()); ?>
78-
```
79-
8076
```ruby
8177
woocommerce.get("").parsed_response
8278
```

source/includes/v3/_introduction.md

-17
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,6 @@ See the webhook resource section.
431431

432432
- [Node.js](https://www.npmjs.com/package/woocommerce-api)
433433
- [Python](https://pypi.python.org/pypi/WooCommerce)
434-
- [PHP](https://packagist.org/packages/woothemes/woocommerce-api)
435434
- [Ruby](https://rubygems.org/gems/woocommerce_api)
436435

437436
```javascript
@@ -464,22 +463,6 @@ wcapi = API(
464463
)
465464
```
466465

467-
```php
468-
<?php
469-
// Install:
470-
// composer require "woothemes/woocommerce-api:3.*"
471-
472-
// Setup:
473-
include_once('vendor/autoload.php');
474-
475-
$woocommerce = new WC_API_Client(
476-
'http://example.com/',
477-
'consumer_key',
478-
'consumer_secret'
479-
);
480-
?>
481-
```
482-
483466
```ruby
484467
# Install:
485468
# gem install woocommerce_api

0 commit comments

Comments
 (0)