Coywolf Custom Blocks — PHP Templates
Companion for Coywolf Custom Blocks that executes PHP inside block templates. GitHub-distributed only.
by Coywolf · github.com/coywolf-llc/custom-blocks-php-templates · website
★ 0stars
10release downloads
0forks
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/coywolf-llc/custom-blocks-php-templates/releases/download/v1.0.2/coywolf-custom-blocks-php-templates.zipDeclares an update source (https://github.com/coywolf-llc/custom-blocks-php-templates), so updates arrive through the plugin's own updater.
From the readme
Coywolf Custom Blocks — PHP Templates
Companion for Coywolf Custom Blocks that executes PHP inside block templates. Install it alongside the main plugin and any in a block's Custom HTML or Preview HTML runs on the server at render time — exactly as it did when this mechanism was built into the main plugin (≤ 1.0.69).
- Version: 1.0.2
- Requires WordPress: 6.0 or later
- Requires PHP: 7.0 or later
- Requires plugin: Coywolf Custom Blocks 1.0.70 or later
- License: GPL-2.0-or-later
Description
Coywolf Custom Blocks renders block templates authored in the WordPress admin. Templates written as plain HTML — including {{field}} substitution, {{#if}} / {{#each}} logic, scripts, and iframes — render through the main plugin alone. Templates containing PHP need this companion: the main plugin detects a PHP open tag in the admin-authored template and hands the substituted markup to this plugin's executor through the coywolfcustomblocksexecutephptemplate filter. Without the companion, those blocks render an explanatory HTML comment instead.
Why a separate plugin? The WordPress.org plugin directory forbids executing user-supplied code stored in the database, in any form. Splitting the exe
Read the full README on GitHub →