projects
/
WP-Plugins
/
glm-donation-chart.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e62c141
)
adding ordering by slugs for the levels
author
Anthony Talarico
<talarico@gaslightmedia.com>
Mon, 20 Nov 2017 17:52:05 +0000
(12:52 -0500)
committer
Anthony Talarico
<talarico@gaslightmedia.com>
Mon, 20 Nov 2017 17:52:05 +0000
(12:52 -0500)
using the slug which is numerical to order the levels by
setup/donation-utils.php
patch
|
blob
|
history
diff --git
a/setup/donation-utils.php
b/setup/donation-utils.php
index
9ecf7e7
..
6399c79
100644
(file)
--- a/
setup/donation-utils.php
+++ b/
setup/donation-utils.php
@@
-6,6
+6,7
@@
$levels = get_terms([
'taxonomy' => $taxonomy,
'hide_empty' => false,
+ 'orderby' => 'slug',
]);
foreach($levels as $level){
// echo '<pre>', print_r($level), '</pre>';