Skip to content

Instantly share code, notes, and snippets.

Avatar

Mark Warren markandcurry

View GitHub Profile
@rniswonger
rniswonger / wp-disable-plugin-update.php
Last active Oct 13, 2021
WordPress - Disable specific plugin update check
View wp-disable-plugin-update.php
/**
* Prevent update notification for plugin
* http://www.thecreativedev.com/disable-updates-for-specific-plugin-in-wordpress/
* Place in theme functions.php or at bottom of wp-config.php
*/
function disable_plugin_updates( $value ) {
if ( isset($value) && is_object($value) ) {
if ( isset( $value->response['plugin-folder/plugin.php'] ) ) {
unset( $value->response['plugin-folder/plugin.php'] );
}
@noelvo
noelvo / download-multiple-files.js
Created Dec 6, 2015
Download multiple files then compress to one zip file using JSZip & JSZip-utils
View download-multiple-files.js
var zip = new JSZip();
var count = 0;
var zipFilename = "zipFilename.zip";
var urls = [
'http://image-url-1',
'http://image-url-2',
'http://image-url-3'
];
urls.forEach(function(url){