GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - teamcodeand/version-control-notice---plugin

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
includes
includes
 
 
.gitignore
.gitignore
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
composer.json
composer.json
 
 
phpcs.xml
phpcs.xml
 
 
version-control-notice.php
version-control-notice.php
 
 

Repository files navigation

Version Control Notice

What

An MU Plugin for WordPress to display a client-friendly explainer when adding or removing plugins has been disabled. Useful when developing WP sites with Bedrock.

This will create an 'Add New' sub page under 'Plugins' with an explanation as to why having version control means adding plugins needs to be disabled.

The wording has been written to be as developer agnostic as is reasonable and hooks have been added to allow for adding site-specific information if necessary.

Why

Sometimes clients forget why they're not able to add plugins, or they hire new team members who were never told, or the site changes hands. This is an attempt to explain before the client requests access they can't have.

Installing

Add this to your project's composer.json file:

  "repositories": [
    {
      "type": "vcs",
      "url": "[email protected]:teamcodeand/version-control-notice---plugin.git",
      "no-api": true
    }
  ],
  "require": {
    "teamcodeand/version-control-notice": "dev-main"
  },

Extending

An example of adding developer contact details as a metabox:

add_action(
    'version_control_notice_before_metaboxes',
    function () {
        ?>
        <div class="postbox">
            <div class="postbox-header">
                <h2 class="hndle"><?php esc_html_e( 'Contact details', 'version-control-notice' ); ?></h2>
                <div class="handle-actions hide-if-no-js">
                    <button type="button" class="handlediv" aria-expanded="true">
                        <span class="screen-reader-text">Toggle panel: Contact details</span>
                        <span class="toggle-indicator" aria-hidden="true"></span>
                    </button>
                </div>
            </div>
            <div class="inside">
                <div class="main">
                    <p><?php esc_html_e( 'This site is maintained by Code&', 'version-control-notice' ); ?></p>
                    <ul>
                        <li><strong>Web:</strong> <a href="https://codeand.com.au/" target="_blank">codeand.com.au</a></li>
                        <li><strong>Slack:</strong> <a href="https://teamcodeand.slack.com/archives/G86S99BH8" target="_blank">Open Slack channel</a></li>
                        <li><strong>Email:</strong> <a href="mailto:[email protected]" target="_blank">[email protected]</a></li>
                    </ul>
                </div>
            </div>
        </div>
        <?php
    }
);

About

No description, website, or topics provided.

Resources

Readme
MIT license
Activity
Custom properties

Stars

0 stars

Watchers

3 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.