-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
867 additions
and
608 deletions.
There are no files selected for viewing
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"name": "co-cart/cocart-beta-tester", | ||
"description": "Easily update to prerelease versions of CoCart Lite for testing and development purposes.", | ||
"homepage": "https://cocart.xyz", | ||
"type": "wordpress-plugin", | ||
"keywords": [ | ||
"wordpress", | ||
"wordpress-development", | ||
"plugin", | ||
"woocommerce", | ||
"e-commerce" | ||
], | ||
"license": "GPL-3.0-or-later", | ||
"prefer-stable": true, | ||
"minimum-stability": "stable", | ||
"authors": [ | ||
{ | ||
"name": "Sébastien Dumont", | ||
"email": "mailme@sebastiendumont.com", | ||
"homepage": "https://sebastiendumont.com", | ||
"role": "Developer" | ||
} | ||
], | ||
"support": { | ||
"issues": "https://github.com/co-cart/cocart-beta-tester/issues" | ||
}, | ||
"autoload": { | ||
"classmap": [ | ||
"includes/" | ||
] | ||
}, | ||
"require": { | ||
"composer/installers": "1.11.0", | ||
"co-cart/cocart-sniffs": "0.0.2" | ||
}, | ||
"require-dev": { | ||
"wp-cli/i18n-command": "2.2.9", | ||
"squizlabs/php_codesniffer": "3.6.0" | ||
}, | ||
"scripts": { | ||
"phpcs": [ | ||
"phpcs -s -p" | ||
], | ||
"phpcs-pre-commit": [ | ||
"phpcs -s -p -n" | ||
], | ||
"phpcbf": [ | ||
"phpcbf . -p" | ||
] | ||
}, | ||
"extra": { | ||
"scripts-description": { | ||
"phpcs": "Analyze code against the WordPress coding standards with PHP_CodeSniffer", | ||
"phpcbf": "Fix coding standards warnings/errors automatically with PHP Code Beautifier" | ||
} | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
/** | ||
* CoCart Beta Tester. | ||
* | ||
* Checks for any beta updates available for the core of CoCart. | ||
* | ||
* @package CoCart_Beta_Tester | ||
*/ | ||
|
||
defined( 'ABSPATH' ) || exit; | ||
|
||
/** | ||
* CoCart_Beta_Tester_Core Class. | ||
*/ | ||
class CoCart_Beta_Tester_Core extends CoCart_Beta_Tester_Plugin_Update { | ||
|
||
/** | ||
* Constructor. | ||
* | ||
* @access public | ||
*/ | ||
public function __construct() { | ||
$this->plugin_file = 'cart-rest-api-for-woocommerce/cart-rest-api-for-woocommerce.php'; | ||
$this->plugin_slug = 'cart-rest-api-for-woocommerce'; | ||
|
||
parent::__construct( $this->plugin_file, $this->plugin_slug ); | ||
} // END__construct() | ||
|
||
} // END class | ||
|
||
return new CoCart_Beta_Tester_Core(); |
Oops, something went wrong.