Skip to content

Instantly share code, notes, and snippets.

@wy4tt34rp
wy4tt34rp / wp-disable-plugin-update.php
Created February 24, 2022 13:23 — forked from rniswonger/wp-disable-plugin-update.php
WordPress - Disable specific plugin update check
/**
* 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'] );
}
@wy4tt34rp
wy4tt34rp / change-divi-mobile-menu-breakpoint.css
Created February 9, 2021 17:11 — forked from hbaker/change-divi-mobile-menu-breakpoint.css
Divi Theme - Modify Mobile Menu Breakpoint
/* CHANGE MOBILE NAV BREAKPOINT */
@media only screen and ( max-width: 1079px ) { /* Change this number to modify breakpoint width */
#top-menu-nav, #top-menu {display: none;}
#et_top_search {display: none;}
#et_mobile_nav_menu {display: block;}
}
@wy4tt34rp
wy4tt34rp / remove-all-product-categories-tags.php
Created May 10, 2018 19:37 — forked from mikaelz/remove-all-product-categories-tags.php
Remove all WooCommerce product categories and tags
<?php
require dirname(__FILE__).'/wp-blog-header.php';
$wpdb->query("DELETE a,c FROM wp_terms AS a
LEFT JOIN wp_term_taxonomy AS c ON a.term_id = c.term_id
LEFT JOIN wp_term_relationships AS b ON b.term_taxonomy_id = c.term_taxonomy_id
WHERE c.taxonomy = 'product_tag'");
$wpdb->query("DELETE a,c FROM wp_terms AS a
LEFT JOIN wp_term_taxonomy AS c ON a.term_id = c.term_id
@wy4tt34rp
wy4tt34rp / translate_woocommerce.php
Created March 21, 2018 23:05 — forked from dannyconnolly/translate_woocommerce.php
Change SKU text label in woocommerce to Product Code
function translate_woocommerce($translation, $text, $domain) {
if ($domain == 'woocommerce') {
switch ($text) {
case 'SKU':
$translation = 'Product Code';
break;
case 'SKU:':
$translation = 'Product Code:';
break;
@wy4tt34rp
wy4tt34rp / WooCommerce Filter Adding Captions to Gallery Thumbnails
Last active October 26, 2021 14:43
WooCommerce Filter Adding Captions to Gallery Thumbnails