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 | |
if ( ! class_exists( 'acf_Widget' ) && class_exists( 'acf_field' ) ) { | |
class acf_Widget extends acf_field { | |
//create a unique string for inheritance | |
const INHERIT_STRING = '--INHERIT--'; | |
const INHERIT_TITLE = '-------- Inherit From Parent --------'; | |
var $settings, $defaults; |
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
$layout_settings = new Fieldmanager_Group( | |
array( | |
'name' => 'layout_settings', | |
'label' => __( 'Configure Page Layout & Zones', 'mason' ), | |
'serialize_data' => false, | |
'children' => array( | |
'layout' => new Fieldmanager_Select( | |
array( | |
'name' => 'layout', | |
'label' => __( 'Layout', 'mason' ), |
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
[ | |
{ | |
"id":925658, | |
"date":"2017-04-04T08:00:43", | |
"date_gmt":"2017-04-04T15:00:43", | |
"guid":{ | |
"rendered":"http:\/\/tri.be\/?p=925658" | |
}, | |
"modified":"2017-04-05T09:26:04", | |
"modified_gmt":"2017-04-05T16:26:04", |
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
[ | |
{ | |
"id": 11374, | |
"date": "2017-05-03T09:12:45", | |
"guid": { | |
"rendered": "http:\/\/wp.ustwo.com\/?p=11374" | |
}, | |
"modified": "2017-05-03T12:31:27", | |
"modified_gmt": "2017-05-03T12:31:27", | |
"slug": "ustwothinks-digital-health", |
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
{ | |
"found": 661449, | |
"posts": [ | |
{ | |
"ID": 2635299, | |
"site_ID": 111738712, | |
"author": { | |
"ID": 266, | |
"login": "igassman", | |
"email": false, |
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
add_action( 'init', function() { | |
register_post_type( 'faculty', [ | |
'label' => 'Faculty', | |
'supports' => [ 'title', 'editor', 'custom-fields' ], | |
'public' => true, | |
'show_in_graphql' => true, | |
'graphql_single_name' => 'faculty', | |
'graphql_plural_name' => 'facultyMembers' | |
] ); | |
} ); |
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
info bootstrap finished - 3.289 s | |
WARNING Compiled with 6 warnings 22:17:56 | |
warning in ./~/graphql-language-service-interface/dist/autocompleteUtils.js.flow | |
Module parse failed: /Users/jasonbahl/Sites/wp-graphql-site/node_modules/graphql-language-service-interface/dist/autocompleteUtils.js.flow Unexpected token (11:12) | |
You may need an appropriate loader to handle this file type. | |
SyntaxError: Unexpected token (11:12) | |
at Parser.pp$4.raise (/Users/jasonbahl/Sites/wp-graphql-site/node_modules/acorn/dist/acorn.js:2221:15) |
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
class ReplaceBlocksButton extends Component { | |
render() { | |
console.log(this.props); | |
return( | |
<button onClick={this.props.clickToReset.bind(this)}>Click Me to Replace Blocks</button> | |
); | |
} | |
} | |
const WrappedReplaceBlocksButton = compose([ |
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
const { addFilter } = wp.hooks; | |
const { withState } = wp.components; | |
class GraphQLMiddleware { | |
constructor(config) { | |
this.query = config.attributes.graphql.query; | |
this.mutation = {}; | |
this.config = _.extend( {}, config ); | |
} |
OlderNewer