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
@danielmcclure
danielmcclure / m3-custom-functionality.php
Created Sep 24, 2019
M3 Custom Functionality Plugin Header for WordPress
View m3-custom-functionality.php
<?php
/**
* M3 Custom Functionality
*
* @package M3CustomFunctionality
* @author Daniel McClure
* @copyright Copyright (c) 2019, Daniel McClure
* @license GPL-2.0+
*
* @wordpress-plugin
@danielmcclure
danielmcclure / wp-config.php
Created Sep 17, 2019
Sentry.io Settings for WP Config
View wp-config.php
<?php
/**
* Sentry.io Settings for WP Config
* Enables features and settings for the WordPress Sentry plugin for Sentry.io
* Plugin URI: https://wordpress.org/plugins/wp-sentry-integration/
*/
// Delete and customise as appropriate, replacing _YOUR_DSN_ with you actual DSN from Sentry.io
define( 'WP_SENTRY_DSN', '_YOUR_DSN_' ); // Enable PHP Tracker
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;
You can’t perform that action at this time.