-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from joaogsleite/feature/wp-plugin
Wordpress plugin
- Loading branch information
Showing
1 changed file
with
15 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
/** | ||
* Plugin Name: WP GraphQL Carbon Fields | ||
* Description: A Wordpress wrapper to expose Carbon Fields to WpGraphQL queries | ||
* Version: 1.0.0 | ||
* License: GPL2 | ||
* Text Domain: wp-graphql-crb | ||
*/ | ||
|
||
add_action('after_setup_theme', 'wp_graphql_crb_boot_plugin'); | ||
function wp_graphql_crb_boot_plugin() { | ||
require_once( __DIR__ . '/src/Container.php'); | ||
require_once( __DIR__ . '/src/Field.php'); | ||
require_once( __DIR__ . '/src/MetaResolver.php'); | ||
} |