-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
1 parent
491fc8c
commit d469147
Showing
4 changed files
with
30 additions
and
5 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
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
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,24 @@ | ||
<?php | ||
|
||
/** | ||
* Run WordPress front-end with WP-CLI. | ||
* | ||
* wp --url="https://example.com/" eval-file wp-cli-run-frontend.php | ||
*/ | ||
|
||
WP_CLI::get_runner()->load_wordpress(); | ||
|
||
// EDIT Optionally add your code here | ||
add_filter( | ||
'woocommerce_admin_features', | ||
static function ($features) { | ||
var_dump($features); | ||
return $features; | ||
}, | ||
0, | ||
1 | ||
); | ||
|
||
wp(); | ||
define('WP_USE_THEMES', true); | ||
require_once ABSPATH . WPINC . '/template-loader.php'; |