Skip to content

View Transitions: Add plvt_show_settings_ui filter to disable settings UI - #2710

Open
wprashed wants to merge 2 commits into
WordPress:trunkfrom
wprashed:fix/2086-view-transitions-settings-ui-filter
Open

wprashed wants to merge 2 commits into
WordPress:trunkfrom
wprashed:fix/2086-view-transitions-settings-ui-filter

Conversation

@wprashed

Copy link
Copy Markdown

Addresses #2086.

Description

This PR introduces the plvt_show_settings_ui filter, allowing site administrators and developers in multisite/agency environments to cleanly disable the View Transitions settings section on options-reading.php and the corresponding action link on plugins.php.

Testing Instructions

  1. In functions.php or a mu-plugin, add add_filter( 'plvt_show_settings_ui', '__return_false' );.
  2. Navigate to Settings > Reading and verify the View Transitions settings section is omitted.
  3. Navigate to Plugins and verify the 'Settings' link is not present under View Transitions.
  4. Run npm run lint-php and npm run phpstan to verify coding standards.

@github-actions

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: wprashed <wprashed@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@github-actions github-actions Bot added the [Plugin] View Transitions [slug: view-transitions] label Oct 13, 2026
@codecov

codecov Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.64%. Comparing base (a25f804) to head (02f992b).
⚠️ Report is 2 commits behind head on trunk.

Additional details and impacted files
@@            Coverage Diff             @@
##            trunk    #2710      +/-   ##
==========================================
+ Coverage   70.50%   71.64%   +1.14%     
==========================================
  Files          91       91              
  Lines        7869     7873       +4     
==========================================
+ Hits         5548     5641      +93     
+ Misses       2321     2232      -89     
Flag Coverage Δ
multisite 71.64% <100.00%> (+1.14%) ⬆️
single 36.50% <100.00%> (+1.16%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions github-actions Bot added the [Plugin] Optimization Detective [slug: optimization-detective] label Oct 13, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Plugin] Optimization Detective [slug: optimization-detective] [Plugin] View Transitions [slug: view-transitions]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant