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 | |
// 1. Return license key & sites after successful authentication. | |
function get_license($req, $res, $args) { | |
$params = $req->getParams(); | |
$header = $req->getHeaders(); | |
$license_key = get_license_key($header['PHP_AUTH_USER'][0]); | |
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 | |
// Load up WordPress. | |
require_once '../wp-load.php'; | |
// Include license key funcitons that handle the options. | |
require_once 'options.php'; | |
// Include license key controller functions that handle the routes. | |
require_once 'controllers.php'; |
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 | |
function get_woocats_arr( $parent = 0, $hierarchy = array() ) { | |
$categories = get_terms( | |
array( | |
'taxonomy' => 'product_cat', | |
'orderby' => 'count', | |
'child_of' => $parent, | |
) |
NewerOlder