This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require __DIR__ . '/vendor/autoload.php'; | |
use Automattic\WooCommerce\Client; | |
use Automattic\WooCommerce\HttpClient\HttpClientException; | |
function getWoocommerceConfig() | |
{ | |
$woocommerce = new Client( | |
'https://www.dbogarin.com', | |
'ck_6df71ec5e7d1f63df2a5a08101fcefdcf67a4b51', | |
'cs_cff7aaed1533c3efc88514ad87d503a8727a423a', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Delete an object, set the ID to 0, and return result. | |
* | |
* @param bool $force_delete | |
* @return bool result | |
*/ | |
public function delete( $force_delete = false ) { | |
// Trigger action before deleting from DB. Allows you to adjust some related object props before delete. | |
do_action( 'woocommerce_before_' . $this->object_type . '_object_delete', $this, $this->data_store ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*---------------------------------------------------------------------------------- | |
TABLE OF CONTENT | |
1. Reset | |
2. General Styling (default font, color, lists, headings, form elements, etc.) | |
3. Structure (page width & layout containers) | |
4. Grid (column width) | |
5. Header (logo, tagline, social widget, search form, main menu) | |
6. Page (page title, author page, pagination) | |
7. Post (post layouts & styling, comments, post navigation) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//* Disable Purchases | |
add_filter( 'woocommerce_is_purchasable', '__return_false'); |
NewerOlder