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 | |
/** | |
* Thinking through a possible implementation for wrapping native WordPress hooks with my own. | |
*/ | |
declare( strict_types=1 ); | |
namespace JMichaelWard\PluginConcept; | |
/** |
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 | |
get_header(); | |
/** @var WP_Post $page */ | |
$page = get_post( 308 ); | |
$blocks = parse_blocks( $page->post_content ); | |
ob_start(); |
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
/* global wp, myPlugin */ | |
const { | |
apiFetch | |
} = wp; | |
const postMyData = () => { | |
apiFetch.use( apiFetch.createNonceMiddleware( myPlugin.nonce ) ); | |
apiFetch( | |
{ |
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 | |
namespace JMichaelWard\BoardGameCollector; | |
use Auryn\Injector; | |
use WebDevStudios\OopsWP\Structure\Plugin\Plugin; | |
use WebDevStudios\OopsWP\Structure\Service; | |
use JMichaelWard\BoardGameCollector\Content\ContentRegistrar; | |
use JMichaelWard\BoardGameCollector\Api\ApiService; | |
use JMichaelWard\BoardGameCollector\UI\Cli\CliService; | |
use JMichaelWard\BoardGameCollector\Cron\CronService; |
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 | |
/** | |
* Plugin Name: Board Game Collector | |
* Plugin URI: https://jmichaelward.com | |
* Description: Connects to the BoardGameGeek API to retrieve and adapt data for use by WordPress. | |
* Author: J. Michael Ward | |
* Author URI: https://jmichaelward.com | |
* | |
* @package JMichaelWard\BoardGameCollector | |
*/ |