This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.7" | |
services: | |
wordpress: | |
container_name: www | |
build: | |
context: . | |
dockerfile: ./Dockerfile | |
links: | |
- mysql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##################################################################### | |
# Pre-configured WordPress Installation w/ for rhomboid development # | |
# For testing only, use in production not recommended. # | |
##################################################################### | |
FROM wordpress:latest | |
LABEL author=hsimah | |
LABEL author_uri=https://github.com/hsimah-services |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"name": "My Plugin", | |
"dockerComposeFile": [ | |
"docker-compose.yml" | |
], | |
"service": "wordpress", | |
"settings": { | |
"terminal.integrated.shell.linux": "/bin/bash", | |
"eslint.alwaysShowStatus": true, | |
"eslint.format.enable": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// this assumes you have registered a Type called YourPostType | |
add_filter('graphql_input_fields', function ($fields, $type_name, $config) { | |
if (isset($config['queryClass']) && 'WP_Query' === $config['queryClass']) { | |
if ('RootQueryToYourPostTypeConnectionWhereArgs' === $type_name) { | |
$fields['custom_attribute'] = [ | |
'name' => 'custom_attribute', | |
'type' => 'Boolean', | |
'description' => __('A custom boolean attribute', 'hello-there'), | |
]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$graphql_singular_name = 'Post'; | |
$graphql_field_type = 'String'; | |
$field_config = [ | |
'name' => 'The human readable ACF field name', | |
'graphql_name' => 'The GraphQL field name, eg first_name', | |
]; | |
add_filter('graphql_input_fields', function ($fields, $type_name) use ($graphql_singular_name, $graphql_field_type, $field_config) { | |
if ($type_name === "Create{$graphql_singular_name}Input" || $type_name === "Update{$graphql_singular_name}Input") { |
OlderNewer