Skip to content

Conversation

@adamziel
Copy link
Collaborator

@adamziel adamziel commented Jan 12, 2026

Summary

Adds a new ?page-title= query parameter that customizes the browser tab title when loading WordPress Playground. This makes it easier to identify different Playground instances when working with multiple tabs.

CleanShot 2026-01-12 at 20 31 18@2x

Example Usage

https://playground.wordpress.net/?page-title=My%20Custom%20Title
https://playground.wordpress.net/?wp=6.4&page-title=WordPress%206.4%20Demo

Test Plan

  • Load Playground with ?page-title=Custom%20Title and verify the browser tab shows "Custom Title"
  • Load Playground without the parameter and verify it shows the default title "WordPress Playground"
  • Navigate between stored sites and verify the custom title persists when the parameter is in the URL
  • Test with special characters and URL encoding to ensure proper handling

Users can now set a custom browser tab title using the ?page-title= query parameter. This makes it easier to identify different Playground instances when working with multiple tabs, particularly useful for documentation, demos, and embedded scenarios.

The parameter is preserved when navigating between sites, ensuring the custom title persists throughout the session.
@adamziel adamziel changed the title Add page-title query parameter to customize browser tab title [Website] Customizable page title via ?page-title query parameter Jan 12, 2026
@adamziel adamziel requested a review from a team January 13, 2026 11:51
@adamziel
Copy link
Collaborator Author

@copilot add a documentation entry to Query API doc page

Copy link
Contributor

Copilot AI commented Jan 13, 2026

@adamziel I've opened a new pull request, #3118, to work on those changes. Once the pull request is ready, I'll request review from you.

The `page-title` query parameter was implemented but missing from the
Query API documentation.

## Changes

- Added `page-title` parameter to the Query API reference table with
description of functionality and persistence behavior

## Usage

```
https://playground.wordpress.net/?page-title=My%20Custom%20Title
https://playground.wordpress.net/?wp=6.4&page-title=WordPress%206.4%20Demo
```

The parameter customizes the browser tab title and persists when
navigating between stored sites.

<!-- START COPILOT CODING AGENT TIPS -->
---

💡 You can make Copilot smarter by setting up custom instructions,
customizing its development environment and configuring Model Context
Protocol (MCP) servers. Learn more [Copilot coding agent
tips](https://gh.io/copilot-coding-agent-tips) in the docs.

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: adamziel <205419+adamziel@users.noreply.github.com>
@adamziel adamziel merged commit fffde71 into trunk Jan 13, 2026
33 checks passed
@adamziel adamziel deleted the tab-title branch January 13, 2026 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants