-
Notifications
You must be signed in to change notification settings - Fork 441
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: review filters, and confirm they are working as expected
- Loading branch information
1 parent
aac0bf2
commit a6cf76c
Showing
3 changed files
with
45 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
namespace WPGraphQL\Type\Enum; | ||
|
||
class GuestCommenterOrderbyEnum { | ||
|
||
/** | ||
* Register the GuestCommenterOrderbyEnum Type to the Schema | ||
* | ||
* @return void | ||
*/ | ||
public static function register_type() { | ||
register_graphql_enum_type( | ||
'GuestCommenterOrderbyEnum', | ||
[ | ||
'description' => __( 'Options for ordering the connection', 'wp-graphql' ), | ||
'values' => [ | ||
'NAME' => [ | ||
'description' => __( 'Order by name of the guest commenter.', 'wp-graphql' ), | ||
'value' => 'comment_author', | ||
], | ||
'EMAIL' => [ | ||
'description' => __( 'Order by e-mail of the guest commenter.', 'wp-graphql' ), | ||
'value' => 'comment_author_email', | ||
], | ||
'URL' => [ | ||
'description' => __( 'Order by URL address of the guest commenter.', 'wp-graphql' ), | ||
'value' => 'comment_author_url', | ||
], | ||
], | ||
] | ||
); | ||
} | ||
} |