Skip to content

Commit

Permalink
Merge pull request #16 from joaogsleite/feature/wp-plugin
Browse files Browse the repository at this point in the history
Wordpress plugin
  • Loading branch information
matepaiva authored Feb 27, 2023
2 parents 0a56ca2 + 80dbea7 commit 11b9923
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions wp-graphql-crb.php
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');
}

0 comments on commit 11b9923

Please sign in to comment.