Skip to content

A WordPress plugin to stop users from updating plugins and themes if they're under your control.

Notifications You must be signed in to change notification settings

JayWood/is-version-control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 

Repository files navigation

WordPress Plugin - Is Version Controlled

Plugin Name: Is Version Controlled
Plugin URI: http://www.plugish.com/
Author: Jerry Wood Jr.
Version: 0.1.1
Author URI: http://plugish.com

This is a WordPress plugin designed for developers and agencies that just hate those calls of "Oops I updated the plugin" which we all know too well. The intent behind this plugin is to block those updates to themes/plugins, and update notifications from within the WordPress admin.

Filters

I tried to make this as easy as possible from a developer standpoint, so I've included some filters that fill the basic needs. If you don't see something that you think should be here then by all means make a pull request.

ivc_plugins

Use this filter to remove plugins. Notice that plugins require <folder>/<file>.php

function test_plugins( $plugins ) {
	$plugins[] = 'akismet/akismet.php';
	return $plugins;
}
add_filter( 'ivc_plugins', 'test_plugins' );

ivc_themes

You can use this filter to remove specific themes from update checks. Notice this only requires the theme slug ( usually the folder name ).

function test( $themes ) {
	$themes[] = 'twentyfifteen';
	return $themes;
}
add_filter( 'ivc_themes', 'test' );

ivc_message_string

If you would like a different message string instead of the default on the plugins list page, you can use this.

/**
 * Overwrites the default message for Version Control
 * @param string $message The Default Message
 * @param string $plugin_file The filepath to the plugin, ie. akismet/akismet.php
 * @param array $plugin_data Plugin data array, such as version, name, etc....
 */
function overwrite_message( $message, $plugin_file, $plugin_data ) {
	return 'Do not touch my plugin!';
}
add_filter( 'ivc_message_string', 'overwrite_message', 10, 3 );

Screenshots

Is Version Control

TODO

  • Remove download button from theme update details link.
  • More?

Changelog

0.1.1

  • Removes the Plugin Update button from the popover
  • Two new filters ivc_private_themes and ivc_private_plugins to prevent plugins from contacting wp.org altogether.
  • Bring back the update toolbar if non-private plugin
  • Update filters to remove plugin updates from update-core screen
  • A few method name changes, more logical naming convention
  • Override update message for themes
  • Remove update message from update-core screen

0.1.0

  • Initial upload

About

A WordPress plugin to stop users from updating plugins and themes if they're under your control.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages