Site News

All about what’s new on the site. It’s also the default category.

  • How to make Claude Code send files to the trash bin to prevent accidental deletions

    How to make Claude Code send files to the trash bin to prevent accidental deletions

    The full hook code is on GitHub: bph/claude-rm-to-trash Claude Code is powerful — sometimes a little too powerful. By default, when it runs rm it permanently deletes files. One wrong move and your work is gone. I wanted a safety net: instead of deleting, send files to the macOS Trash so I can recover them if needed. Here’s how I did it with a Claude Code PreToolUse hook and Claude’s help What is a PreToolUse hook? Claude Code supports hooks — shell scripts that run automatically before (or after) a tool is used. A PreToolUse hook…

    Read more

  • ThemeProvider from the WordPress Theme package

    The team is working on theme package as part of the new UI package. It’s in activem early development and won’t come to WordPress Core anytime soon. However, developers building on top of WordPress can already use it. This has nothing to do with WordPress Themes. The Theme package is for the inner workings of WordPress, in side the WP-Admin, after logging into the site. It’s also for plugin developers providing add-ons for WordPress users. The documentation is available on WordPress Developer site A summary of the current status of…

    Read more

  • Using Playground CLI for plugin or theme development

    Using Playground CLI for plugin or theme development

    For my plugin or theme testing or development, I prefer not to bury the directory several levels deep in the WordPress Studio app’s directories. I’d rather symlink from the development directory into any site on Studio. For testing during development I prefer the Playground CLI and especially now with the `–auto-mount’ flag. Now I can call the Playground cli directly from the command line out of my development directory and it spins up a WordPress site with my plugin in the works or my theme in the works already installed…

    Read more

    Fediverse Reactions
  • List of AI News sites

    List of AI News sites

    I asked Claude for a run down of last week’s AI News, as I was mostly off-line at WordCamp US. Here is the list of sources it reviewed: Now I added them to my Feed Reader Feedly Here is the OPML file you also would like to use it.

    Read more

  • Automating simple tasks on Google Drive and Google Storage for the Gutenberg Changelog podcast

    Automating simple tasks on Google Drive and Google Storage for the Gutenberg Changelog podcast

    This week, I succeeded again using AI to automate a few interconnected tasks. Gemini is a great buddy for that. Now I have command line tool, written in Python that does this: Set-up a new podcast episode on Google Drive: Publish the mp3 file on Google Storage After the producer drops the final episode file in the episode’s folder this command line script does the following Key Technologies and Features When I look through the final list of the various touchpoints, I probably wouldn’t have succeeded in creating this in…

    Read more

    Fediverse Reactions
  • GitHub Copilot rocks, somewhat.

    GitHub Copilot rocks, somewhat.

    Yesterday, got myself totally tangled up with git branches on my local machine and pushed a PR to a GitHub repo that included files that didn’t belong to the respective branch. I closed the PR right away but still had to clean up my local stuff.  For the first time I conferred with GitHub’s Copilot to get myself out of the mess.  A big disadvantage is that you can’t get a Copilot history. I asked about it and this is the answer:  “GitHub Copilot Chat does not currently provide a built-in…

    Read more

  • Ghibli Style from my photos

    Ghibli Style from my photos

    I was curious to see what the fuzz is about and I opened up ChatGPT and uploaded three photos. Each image took a while Here are the results. Friends chatting over beer. Hubby and I A group of girlfriends My team mates Co-Founder of Studio Ghibli is the Japanese manga artist Hayao Miyazaki, together with  Isao Takahata and producer Toshio Suzuki Martin Dubovic shared his thoughts on the Ghibli AI Trend his post I Lived 5 Minutes From the Ghibli Museum and Here’s My Thoughts on the Ghibli AI Trend

    Read more

  • Real-time-Collaboration or Heartbeat API, WebRTC and Web sockets for mere mortals

    Real-time-Collaboration or Heartbeat API, WebRTC and Web sockets for mere mortals

    Earlier this month, Kevin Jahns and a group of contributors came together to learn more about the real-time collaborative efforts for WordPress. Reliable Sync Protocol PR: Live Demo & Discussion for Collaborative Editing Kevin Jahns implemented a first version of a reliable sync protocol for collaborative editing in this PR for Gutenberg. Note: “Collaboration” experiments are already enabled. Now there are two technical terms that might need explanations: Heartbeat API and WebRTC. And then a third term entered the bar… Most of the explanations below come from my knowledge gap…

    Read more

  • Debugging GitHub Actions

    Debugging GitHub Actions

    I had a workflow glued together, but couldn’t figure out why it wouldn’t work. As I know very little about action and YML notation, I ask a co-worker if he would have some time to look over it. There were the issues we fixed together. Before you can test things, you would need GitHub to actually run the action, and that only happens when a file has the *yml extension. Note: The label that should trigger the workflow can have a colon in the name, that comes out as a…

    Read more

  • providesContext and usesContext – Block API

    providesContext and usesContext – Block API

    Nick Diego shared this code example on helping out the OP on the GitHub issues. The use case by itself would be fascinating, but I just want to learn about this particular code. Nick shared it in the WordPress Slack #outreach channel to help a user with his code. You can read the full conversation here (you need a wp.org account and a slack account, though) My new favorite AI tool is Perplexity to use as a learning tool. Below you find the answer to the prompt and to follow-up…

    Read more

  • Help with discovery of your new blocks

    Help with discovery of your new blocks

    At WordCamp Asia, I had a conversation with a plugin owner about the progression of their plugin. She told me that they refactored all their blocks, and want to discontinue the old ones. A refactor was much easier than trying to continue making deprecation versions, for sure. I also learned that the team had difficulties convincing their users to use the new blocks instead. This problem was simmering in the back of my head since then. As a user of the plugin, I didn’t realize that the new blocks were…

    Read more

  • Starting with Docusaurus

    Starting with Docusaurus

    One of my tasks today was to migrate the Blueprint 101 crash course from the Blueprint Gallery repo to the Playground documentation site. The difference is that the Blueprint Gallery uses GitHub Markdown pages while the Playground documentation used Docusaurus library. The first hurdle to overcome was to create a local copy of the existing Documentation. The instructions are clear: It just doesn’t say how often you have to run those command to get a clean built of the local documentation pages. I ran into all kind of errors, starting…

    Read more