Skip to content

Commit

Permalink
fix: imports error
Browse files Browse the repository at this point in the history
  • Loading branch information
zngly-vlad committed Jul 20, 2022
1 parent 70d6bbb commit fc765d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/mutations.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
// }, 10, 3);

/**
* PostObject class.
* Mutations class.
* Maps the above comment to acf fields
*/
class PostObject
class Mutations
{
/**
* @var Config <string> List of field groups and fields
Expand Down
5 changes: 1 addition & 4 deletions wp-graphql-acf-mutations.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
require_once(__DIR__ . '/src/mutations.php');
require_once(__DIR__ . '/src/register.php');

require_once(__DIR__ . '/vendor/plugins/advanced-custom-fields/acf.php');
require_once(__DIR__ . '/vendor/plugins/wp-graphql/wp-graphql.php');

/**
* Initialize the plugin
*
Expand All @@ -45,7 +42,7 @@ function init()
new Inputs();

// run the post object actions
new PostObject();
new Mutations();
}

add_action('init', '\WPGraphQL\ACF\Mutations\init');
Expand Down

0 comments on commit fc765d3

Please sign in to comment.