Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to disable the new Altis version banner #786

Open
johnbillion opened this issue Jul 27, 2023 · 0 comments
Open

Add ability to disable the new Altis version banner #786

johnbillion opened this issue Jul 27, 2023 · 0 comments
Labels
to refine Issues needing refinement.

Comments

@johnbillion
Copy link
Member

johnbillion commented Jul 27, 2023

When a new version of Altis is released, a banner is shown on the dashboard of sites that are not on that latest version (added by the render_upgrade_widget() function). For sites where the upgrade process is planned, scheduled, and managed by the delivery team this banner is not necessary because it's not actionable by the majority of the people who see it.

We'd like to be able to disable this banner on production environments, preferably via a filter. For example if ( is_production() ) { add_filter( 'show_altis_upgrade_widget', '__return_false' ); }.

Can a filter for this be added please? The alternative is to completely unhook the maybe_render_header() function which isn't exactly what we want to do.

@mikelittle mikelittle added could have Could be done, or nice to have, low priority for now to refine Issues needing refinement. and removed could have Could be done, or nice to have, low priority for now labels Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to refine Issues needing refinement.
Projects
None yet
Development

No branches or pull requests

2 participants