Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/PostObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function init()
);

add_action(
'graphql_post_object_mutation_update_additional_data',
'graphql_post_object_mutation_set_object_terms',
[
$this,
'__action_graphql_post_object_mutation_update_additional_data',
Expand Down Expand Up @@ -45,6 +45,8 @@ function init()

/**
* Handle 'language' in post object create&language mutations
* Fires before setting object terms during a GraphQL Post Object Mutation.
* This way the language of the post is set before trying to update the taxonomies.
*/
function __action_graphql_post_object_mutation_update_additional_data(
$post_id,
Expand Down