You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: rename plugin to "GraphQL for eCommerce" for trademark compliance
The WordPress.org plugin review flagged the display name/slug for beginning
with the "WPGraphQL" trademark (and the "WooGraphQL" portmanteau of the
WooCommerce mark), which can imply official affiliation.
- Display name (plugin header + readme title) -> "GraphQL for eCommerce".
- Slug/text domain -> "graphql-for-ecommerce" (header, all i18n string
literals, and the PHPCS WordPress.WP.I18n text_domain config).
- Update user-facing notices/errors that named the old plugin.
"WooGraphQL" remains the project's informal nickname (repo, docs, community),
just not in the WordPress.org directory's official name/slug. Internal file
names and GitHub URLs are unchanged.
Copy file name to clipboardExpand all lines: includes/class-compatibility.php
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -220,13 +220,13 @@ public static function add_jwt_output_fields( $fields, $object_type, $type_regis
220
220
'authToken' => [
221
221
'type' => $type_registry->get_type( 'String' ),
222
222
'description' => staticfunction () {
223
-
return__( 'JWT Token that can be used in future requests for Authentication', 'wp-graphql-woocommerce' );
223
+
return__( 'JWT Token that can be used in future requests for Authentication', 'graphql-for-ecommerce' );
224
224
},
225
225
'resolve' => staticfunction ( $payload ) {
226
226
$user = get_user_by( 'ID', $payload['id'] );
227
227
228
228
if ( ! $user ) {
229
-
thrownewUserError( __( 'User not found.', 'wp-graphql-woocommerce' ) );
229
+
thrownewUserError( __( 'User not found.', 'graphql-for-ecommerce' ) );
230
230
}
231
231
232
232
returnself::get_auth_token( $user );
@@ -235,13 +235,13 @@ public static function add_jwt_output_fields( $fields, $object_type, $type_regis
235
235
'refreshToken' => [
236
236
'type' => $type_registry->get_type( 'String' ),
237
237
'description' => staticfunction () {
238
-
return__( 'A JWT token that can be used in future requests to get a refreshed jwtAuthToken. If the refresh token used in a request is revoked or otherwise invalid, a valid Auth token will NOT be issued in the response headers.', 'wp-graphql-woocommerce' );
238
+
return__( 'A JWT token that can be used in future requests to get a refreshed jwtAuthToken. If the refresh token used in a request is revoked or otherwise invalid, a valid Auth token will NOT be issued in the response headers.', 'graphql-for-ecommerce' );
239
239
},
240
240
'resolve' => staticfunction ( $payload ) {
241
241
$user = get_user_by( 'ID', $payload['id'] );
242
242
243
243
if ( ! $user ) {
244
-
thrownewUserError( __( 'User not found.', 'wp-graphql-woocommerce' ) );
244
+
thrownewUserError( __( 'User not found.', 'graphql-for-ecommerce' ) );
245
245
}
246
246
247
247
returnself::get_refresh_token( $user );
@@ -263,7 +263,7 @@ public static function add_customer_to_login_payload() {
263
263
[
264
264
'type' => 'Customer',
265
265
'description' => staticfunction () {
266
-
return__( 'Customer object of authenticated user.', 'wp-graphql-woocommerce' );
266
+
return__( 'Customer object of authenticated user.', 'graphql-for-ecommerce' );
267
267
},
268
268
'resolve' => staticfunction ( $payload ) {
269
269
$id = $payload['id'];
@@ -281,7 +281,7 @@ public static function add_customer_to_login_payload() {
281
281
[
282
282
'type' => 'String',
283
283
'description' => staticfunction () {
284
-
return__( 'A JWT token that can be used in future requests to for WooCommerce session identification', 'wp-graphql-woocommerce' );
284
+
return__( 'A JWT token that can be used in future requests to for WooCommerce session identification', 'graphql-for-ecommerce' );
Copy file name to clipboardExpand all lines: includes/class-wp-graphql-woocommerce.php
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -138,7 +138,7 @@ public static function get_product_attribute_taxonomies() {
138
138
*/
139
139
publicfunction__clone() {
140
140
// Cloning instances of the class is forbidden.
141
-
_doing_it_wrong( __FUNCTION__, esc_html__( 'WP_GraphQL_WooCommerce class should not be cloned.', 'wp-graphql-woocommerce' ), '0.0.1' );
141
+
_doing_it_wrong( __FUNCTION__, esc_html__( 'WP_GraphQL_WooCommerce class should not be cloned.', 'graphql-for-ecommerce' ), '0.0.1' );
142
142
}
143
143
144
144
/**
@@ -148,7 +148,7 @@ public function __clone() {
148
148
*/
149
149
publicfunction__wakeup() {
150
150
// De-serializing instances of the class is forbidden.
151
-
_doing_it_wrong( __FUNCTION__, esc_html__( 'De-serializing instances of the WP_GraphQL_WooCommerce class is not allowed', 'wp-graphql-woocommerce' ), '0.0.1' );
151
+
_doing_it_wrong( __FUNCTION__, esc_html__( 'De-serializing instances of the WP_GraphQL_WooCommerce class is not allowed', 'graphql-for-ecommerce' ), '0.0.1' );
152
152
}
153
153
154
154
/**
@@ -457,8 +457,8 @@ static function () {
457
457
'<p>%s</p>' .
458
458
'</div>',
459
459
esc_html__(
460
-
'WPGraphQL for WooCommerce appears to have been installed without it\'s dependencies. It will not work properly until dependencies are installed. This likely means you have cloned WPGraphQL from Github and need to run the command `composer install`.',
461
-
'wp-graphql-woocommerce'
460
+
'GraphQL for eCommerce appears to have been installed without its dependencies. It will not work properly until dependencies are installed. This likely means you have cloned the plugin from Github and need to run the command `composer install`.',
0 commit comments