• I guess this is sort of the opposite of what’s described here: when I Clone TwentyTwentyFive using Create Block Theme, add a new template with only pre-defined header and footer template parts in it, and save the changes to the theme, the code from footer.php is written into footer.html.

    TwentyTwentyFive:
    ~/parts/footer.html which is only a link to a pattern
    ~/patterns/footer.php contains the actual code

    Clone of TwentyTwentyFive
    ~/parts/footer.html now contains all the rendered PHP code
    ~/patterns/footer.php contains the unrendered PHP code

    Is this for security reasons (no writing of PHP code in ~/wp-content/)?

You must be logged in to reply to this topic.