Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Fix #135. Add Explicit options for adding ACF Field Groups to the Schema #229

Merged
merged 24 commits into from
Apr 20, 2021
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
6cb6193
Fix #135. Add Explicit options for adding ACF Field Groups to the Schema
rsm0128 Jan 19, 2021
46696e3
Fixed formatting issues. Reverted phpcs auto formatting error and fol…
rsm0128 Jan 19, 2021
fc010f7
fixed spelling issue. Thanks @drewbaker
rsm0128 Jan 23, 2021
3c9349b
updated unit test with new graphql_types_on field
rsm0128 Mar 15, 2021
1271ed9
Aded Explicit Options WpUnit test case
rsm0128 Mar 15, 2021
36b03c0
updated plugin version check
rsm0128 Mar 15, 2021
629dfac
fixed typo issue with user register fields
rsm0128 Mar 20, 2021
078cc98
Added contentNode and termNode support for the explicit option
rsm0128 Mar 20, 2021
7f1ebdd
- add plaftform_check to .gitignore
jasonbahl Mar 20, 2021
f51d294
- Update GraphQL Settings fields to use the GraphQL Type names as val…
jasonbahl Mar 31, 2021
0d2e191
- Add the `ContentTemplate` interface to the Checkboxes
jasonbahl Mar 31, 2021
c6e3888
- Fix typo in JS for unsetting checked state
jasonbahl Mar 31, 2021
8f56a30
- add filter to `ContentTemplate` fields to pass the source node alon…
jasonbahl Apr 5, 2021
6ef9cc1
- removes activation script that tries to upgrade location rules
jasonbahl Apr 6, 2021
b202db1
- Update test to include nav menu registration
jasonbahl Apr 6, 2021
d7cb493
- Update test message linking to WPGraphQL Issue
jasonbahl Apr 6, 2021
21a0b8f
- Update ACF Settings tp include an AJAX action/callback for determin…
jasonbahl Apr 9, 2021
63afa2f
Merge commit '3bf411f270c591a89dce3b41acb655046139a10e' into bugfix-135
jasonbahl Apr 9, 2021
4ed2017
- Move GraphQL Field Group Settings into their own box in the ACF Fie…
jasonbahl Apr 12, 2021
faa5701
- remove dummy code from wp-graphql-acf
jasonbahl Apr 14, 2021
8bde1b2
- update testing matrix
jasonbahl Apr 14, 2021
e35e895
- update testing matrix
jasonbahl Apr 14, 2021
d0ca31f
- Update tests to test with multiple versions of WPGraphQL
jasonbahl Apr 14, 2021
bf4c781
- Update .gitignore to not ignore the platform check
jasonbahl Apr 20, 2021
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
5 changes: 0 additions & 5 deletions src/class-acf.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,6 @@ public function __wakeup() {
*/
private function setup_constants() {

// Plugin version.
if ( ! defined( 'WPGRAPHQL_ACF_VERSION' ) ) {
define( 'WPGRAPHQL_ACF_VERSION', '0.3.0' );
}

// Plugin Folder Path.
if ( ! defined( 'WPGRAPHQL_ACF_PLUGIN_DIR' ) ) {
define( 'WPGRAPHQL_ACF_PLUGIN_DIR', plugin_dir_path( __FILE__ . '/..' ) );
Expand Down
13 changes: 13 additions & 0 deletions src/class-acfsettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,19 @@ public function add_field_group_settings( $field_group ) {
]
);

$choices = Config::get_all_graphql_types();
acf_render_field_wrap(
[
'label' => __( 'GraphQL Types to Show the Field Group On', 'wp-graphql-acf' ),
'instructions' => __( 'Select the Types in the WPGraphQl Schema to show the fields in this field group on', 'wp-graphql-acf' ),
'type' => 'checkbox',
'prefix' => 'acf_field_group',
'name' => 'graphql_types_on',
'value' => ! empty( $field_group['graphql_types_on'] ) ? $field_group['graphql_types_on'] : null,
'toggle' => true,
'choices' => $choices
]
);
}

}
Loading