Skip to content

Instantly share code, notes, and snippets.

Daniel McClure danielmcclure

Block or report user

Report or block danielmcclure

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View checkbox_input.php
<?php
$args = array(
'label' => '', // Text in Label
'class' => '',
'style' => '',
'wrapper_class' => '',
'value' => '', // if empty, retrieved from post meta where id is the meta_key
'id' => '', // required
'name' => '', //name will set from id if empty
@danielmcclure
danielmcclure / functions.php
Created Jul 23, 2019
Suppress all Genesis microdata/schema output
View functions.php
<?php
// Suppress all Genesis microdata/schema output
add_filter( 'genesis_disable_microdata', '__return_true' );
@danielmcclure
danielmcclure / style.scss
Created May 22, 2019 — forked from seothemes/style.scss
Gravity Forms SCSS
View style.scss
/* ## Gravity Forms
--------------------------------------------- */
.gform_heading,
.gform_body,
.gform_footer {
clear: both;
}
.gform_heading {
@danielmcclure
danielmcclure / wp-config.php
Created May 2, 2019
Settings that Block Updates for WordPress Sites
View wp-config.php
<?php
/**
* Settings that Block Updates for WordPress Sites
*/
// Disable Live File Editing
define( 'DISALLOW_FILE_MODS', true );
// Disable Automatic WordPress Updates
define( 'WP_AUTO_UPDATE_CORE', false );
View regex.txt
.*\.(ai|bmp|eps|gif|indd|j2c|jp2|jpe?g|jpf|jpm|mj2|png|psd|raw|svg|tiff|webp)$
@danielmcclure
danielmcclure / functions.php
Created Apr 3, 2019
Disable WooCommerce Extension Recommendations in the WordPress Dashboard
View functions.php
<?php
// Disable WooCommerce Extension Recommendations in the WordPress Dashboard
add_filter( ‘woocommerce_allow_marketplace_suggestions’, ‘__return_false’ );
@danielmcclure
danielmcclure / functions.php
Created Mar 27, 2019
Get Current User Country (Geolocation) & Customise Output with WooCommerce
View functions.php
/**
* @snippet Get Current User Country (Geolocation) - WooCommerce
* @how-to Watch tutorial @ https://businessbloomer.com/?p=19055
* @sourcecode https://businessbloomer.com/?p=72811
* @author Rodolfo Melogli
* @compatible Woo 3.5.3
* @donate $9 https://businessbloomer.com/bloomer-armada/
*/
function bbloomer_use_geolocated_user_country(){
@danielmcclure
danielmcclure / custom.css
Last active Mar 26, 2019
Custom Gravity Forms Checkbox & Radio Button CSS Styles
View custom.css
/*
* # Custom Gravity Forms Checkbox & Radio Button Styles - v.1.0
* Author: [Daniel McClure](https://www.danielmcclure.com/code/)
* License: MIT
*/
/* Base input and label configuration */
.gfield_checkbox li,
.gfield_radio li {
position: relative;
@danielmcclure
danielmcclure / functions.php
Created Feb 18, 2019
Disabel Jetpack Nags Inside WordPress Admin Dashboard
View functions.php
<?php
// Disable Jetpack Nags Inside WordPress Admin Dashboard
add_filter( 'jetpack_just_in_time_msgs', '_return_false' );
View remove-woocommerce-admin-theme-support-warning.php
// Remove WooCommerce Theme Support admin message
add_theme_support( 'woocommerce' );
You can’t perform that action at this time.