Skip to content

Commit 461caad

Browse files
authored
feat: "NAME" added to "PostTypeOrderbyEnum" values (#722)
1 parent 6532e0a commit 461caad

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
"process-timeout": 0,
3434
"sort-packages": true,
3535
"allow-plugins": {
36-
"johnpbloch/wordpress-core-installer": true
36+
"johnpbloch/wordpress-core-installer": true,
37+
"composer/installers": true
3738
}
3839
},
3940
"autoload-dev": {

includes/type/enum/class-post-type-orderby-enum.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ class Post_Type_Orderby_Enum {
2727
*/
2828
protected static function post_type_values() {
2929
return [
30+
'NAME' => [
31+
'value' => 'post_title',
32+
'description' => __( 'Order by name', 'wp-graphql-woocommerce' ),
33+
],
3034
'SLUG' => [
3135
'value' => 'post_name',
3236
'description' => __( 'Order by slug', 'wp-graphql-woocommerce' ),

0 commit comments

Comments
 (0)