Skip to content

Instantly share code, notes, and snippets.

View jonathanbossenger's full-sized avatar
🏠
Working from home

Jonathan Bossenger jonathanbossenger

🏠
Working from home
View GitHub Profile
# Build Plan: "Simple Contact Block" WordPress Plugin
## Decisions locked in for this build
- **Scaffolding tool:** `@wordpress/create-block` (official WordPress package)
- **Plugin slug / namespace:** `simple-contact-block`
- **Block name:** `simple-contact-block/contact-form`
- **Block render type:** Dynamic (server-side rendered via `render.php`)
- **Form submission:** Custom WordPress REST API endpoint, called from JS using `@wordpress/api-fetch` (not raw `fetch()`)
- **Storage:** Custom post type `contact_submission`
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
import { z } from "zod";
// Create an MCP server
const server = new McpServer({
name: "My Support Server",
version: "1.0.0",
});

Abilities API and Connectors: Developer Guide

WordPress is introducing two new interconnected systems for AI integration: the Abilities API and the Connectors system. Together, they provide a standardized way to define executable WordPress capabilities and manage API credentials for external AI providers.

This guide covers both systems from a developer perspective, including architecture, API reference, and practical examples.

Table of Contents

{
"steps": [
{
"step": "installPlugin",
"pluginData": {
"resource": "wordpress.org/plugins",
"slug": "sqlite-database-integration"
}
},
{
@jonathanbossenger
jonathanbossenger / book
Last active November 27, 2025 12:12
Book content
<!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap"}} -->
<div class="wp-block-group"><!-- wp:paragraph -->
<p>Author</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p></p>
<!-- /wp:paragraph --></div>
<!-- /wp:group -->
# ✨ Set up Copilot instructions
Configure instructions for this repository as documented in [Best practices for Copilot coding agent in your repository](https://gh.io/copilot-coding-agent-tips).
<Onboard this repo>

Below is a product design document for the described WordPress job application plugin. This plugin provides secure applicant registration, user authentication, custom user roles, and resume upload functionality via a block-enabled form.

Product Overview

This WordPress plugin enables authenticated job applicants to submit personal information and a resume (PDF) via an application form. It leverages a custom user type (“applicant”) and requires users to register or log in before accessing the application block.


Functional Requirements

// Register a custom ability to get the WordPress debug status.
add_action( 'abilities_api_init', 'my_plugin_register_debug_status_ability' );
/**
* Registers the 'my-plugin/debug-status' ability.
*
* @return void
*/
function my_plugin_register_debug_status_ability() {
wp_register_ability(
'my-plugin/debug-status',
@jonathanbossenger
jonathanbossenger / wcus2025.md
Last active August 21, 2025 17:43
All the links for my WCUS Workshop: Turn your local WordPress install into your AI coding assistant