Blueprints: runPHP – add option to load php from external file

Open
#34 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
php
Domain
backend

Research direction

Start by locating the Blueprints runPHP entry point and review how PHP code is currently supplied inline. Define the external-file option around that existing behavior, then verify that a blueprint can load PHP from a separate file while inline code still works.

Written by the indexing model from the issue text.

Description

enhancement

Do you think it could be possible to extract such PHP code into its own file, instead of having to load all PHP inline?

Thank you!


Porting my feedback from this post over to the repo.
-- https://make.wordpress.org/meta/2023/11/22/plugin-directory-preview-button-revisited/#comment-9627

Dominant language
PHP
Stars
61
Forks
21
Avg merge
19h 34m
Merged PRs (30d)
7

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from WordPress/php-toolkit

All issues in WordPress/php-toolkit

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.