This file contains hidden or 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
{ | |
"data": { | |
"articles": { | |
"nodes": [ | |
{ | |
"title": "Elon Musk’s obsession with blue checks is a verified problem", | |
"body": { | |
"components": [ | |
{ | |
"__typename": "EntrybodyParagraph", |
This file contains hidden or 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
SELECT post_id,meta_value | |
FROM db.wp_postmeta | |
INNER JOIN db.wp_posts ON db.wp_postmeta.post_id = db.wp_posts.ID | |
WHERE post_type IN('post','page','custom_post_type') | |
AND meta_key = 'some_meta_key' | |
AND meta_value | |
IN( | |
'item1','item2','item3' | |
); |
This file contains hidden or 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
/** | |
* WordPress dependencies | |
*/ | |
import { | |
InspectorControls, | |
MediaUpload, | |
useBlockProps, | |
} from '@wordpress/block-editor'; | |
import ServerSideRender from '@wordpress/server-side-render'; | |
import { __ } from '@wordpress/i18n'; |
This file contains hidden or 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
/* global jQuery */ | |
/** | |
* Styles | |
*/ | |
import './term.scss'; | |
( () => { | |
const { | |
i18n: { __ }, |
This file contains hidden or 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 | |
/** | |
* Plugin Core setup. | |
* | |
* @package Plugin_Core | |
*/ | |
namespace PluginCore; | |
/** |
This file contains hidden or 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 | |
/** | |
* Setup class. | |
*/ | |
class Setup { | |
/** | |
* Return only one instance of Setup. | |
* |
This file contains hidden or 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 | |
register_post_meta( | |
'post', | |
'forage_authors', | |
[ | |
'type' => 'array', | |
'description' => 'Additional authors IDs.', | |
'single' => true, | |
'sanitize_callback' => null, |
This file contains hidden or 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
/** | |
* External Dependencies | |
*/ | |
const path = require('path'); | |
/** | |
* WordPress Dependencies | |
*/ | |
const defaultConfig = require('@wordpress/scripts/config/webpack.config.js'); |