Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register Pro Custom Fields #28

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

justlevine
Copy link
Contributor

Registers Pro Custom Fields to the GraphQL Event.

For ease of use, the fields are registered using their label, as the field name defined in the database is semantically meaningless ( _ecp_custom_{#} ).

Comment on lines +292 to +294
'resolve' => function ( $source ) use( $field ) {
get_post_meta( $source->ID, $field['name'], true);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'resolve' => function ( $source ) use( $field ) {
get_post_meta( $source->ID, $field['name'], true);
}
'resolve' => static function ( $source ) use( $field ) {
return get_post_meta( $source->ID, $field['name'], true );
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Waiting for a response to #30 (comment) before merging.

includes/types/object/class-event-type.php Outdated Show resolved Hide resolved
includes/types/object/class-event-type.php Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants