-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8ea4ac3
commit 68c31b8
Showing
7 changed files
with
138 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
/** | ||
* Interface for Social Seo fields. | ||
* | ||
* @package WPGraphQL\RankMath\Type\WPInterface | ||
*/ | ||
|
||
namespace WPGraphQL\RankMath\Type\WPInterface; | ||
|
||
use WPGraphQL\RankMath\Type\WPObject\UserSocialMeta; | ||
use WPGraphQL\RankMath\Vendor\AxeWP\GraphQL\Abstracts\InterfaceType; | ||
|
||
/** | ||
* Class - SocialSeo | ||
*/ | ||
class SocialSeo extends InterfaceType { | ||
/** | ||
* {@inheritDoc} | ||
*/ | ||
protected static function type_name(): string { | ||
return 'SocialSeo'; | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
public static function get_description(): string { | ||
return __( 'The social seo data.', 'wp-graphql-rank-math' ); | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
public static function get_fields(): array { | ||
return [ | ||
'social' => [ | ||
'type' => UserSocialMeta::get_type_name(), | ||
'description' => __( 'The social meta properties.', 'wp-graphql-rank-math' ), | ||
], | ||
]; | ||
} | ||
} |
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,49 @@ | ||
<?php | ||
/** | ||
* The Rank Math UserSocialMeta GraphQL Object. | ||
* | ||
* @package WPGraphQL\RankMath\Type\WPObject | ||
*/ | ||
|
||
namespace WPGraphQL\RankMath\Type\WPObject; | ||
|
||
use WPGraphQL\RankMath\Vendor\AxeWP\GraphQL\Abstracts\ObjectType; | ||
|
||
/** | ||
* Class - UserSocialMeta | ||
*/ | ||
class UserSocialMeta extends ObjectType { | ||
/** | ||
* {@inheritDoc} | ||
*/ | ||
protected static function type_name(): string { | ||
return 'UserSocialMeta'; | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
public static function get_description(): string { | ||
return __( 'The RankMath SEO User Social data', 'wp-graphql-rank-math' ); | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
public static function get_fields(): array { | ||
return [ | ||
'facebookProfileUrl' => [ | ||
'type' => 'String', | ||
'description' => __( 'The complete Facebook profile URL.', 'wp-graphql-rank-math' ), | ||
], | ||
'twitterUserName' => [ | ||
'type' => 'String', | ||
'description' => __( 'Twitter Username of the user.', 'wp-graphql-rank-math' ), | ||
], | ||
'additionalProfiles' => [ | ||
'type' => [ 'list_of' => 'String' ], | ||
'description' => __( 'A list of additional social profiles.', 'wp-graphql-rank-math' ), | ||
], | ||
]; | ||
} | ||
} |
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