Skip to content

Instantly share code, notes, and snippets.

View unscripted's full-sized avatar

Cullen Whitmore unscripted

View GitHub Profile
@qoomon
qoomon / conventional_commit_messages.md
Last active April 26, 2024 15:05
Conventional Commit Messages

Conventional Commit Messages

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions and generate verion and changelogs

Commit Message Formats

Default

@phillcoxon
phillcoxon / strip_visual_composer_shitcodes.php
Last active March 11, 2021 11:31
Strip Visual Composer shortcodes from posts
<?php
/*
Load selected posts, strip out Visual Composer shortcodes leaving the content intact and update the post again.
*/
require('wp-load.php');
require_once('wp-includes/functions.php');
require_once('wp-includes/shortcodes.php');
@BFTrick
BFTrick / update-tax-status.sql
Created July 25, 2013 16:25
Update the tax status of all WooCommerce products.
UPDATE `wp_postmeta`
SET meta_value='taxable'
WHERE meta_key='_tax_status'
@unscripted
unscripted / init.php
Created December 18, 2012 06:25
Fixes issue in Simplex theme where shortcoder media button disappears after upgrading WordPress to 3.5. Former method was using media_buttons_context. That method was deprecated in 3.5. (http://core.trac.wordpress.org/ticket/22559) This file is located @Simplex/core/shortcoder/init.php
<?php
add_action('media_buttons' , 'ts_shortcoder_button', 11);
function ts_shortcoder_button(){
$shortcoder_button_image = THEME_CORE_URL . '/images/shortcoder_icon.png';
$shortcoder_button = ' %s';
echo '<a title = "' . __('Insert a Shortcode' , TS_DOMAIN) . '" href="' . THEME_CORE_URL . '/shortcoder/shortcoder.php?init=true&TB_iframe=true&width=500" class="thickbox"><img src = "' . $shortcoder_button_image . '" /></a>';
}