• Skip to primary navigation
  • Skip to main content
Daniel McClure

Daniel McClure

Entrepreneurship, Marketing, Technology, Travel & Lifestyle

  • About
  • Credentials
  • The Blog of Daniel McClure
  • Social
  • Code
  • Contact
  • GitHub
  • Instagram
  • LinkedIn
  • Twitter

Code Snippets

This section of the site contains code snippets and examples which have been created or shared by Daniel McClure around the web.

You are here: Home ยป Code Snippets
Daniel McClure Featured Image

Last Updated: June 12, 2019 Leave a Comment

Gravity Forms SCSS Reset

https://gist.github.com/danielmcclure/de2b8ce17deae24c9f24cb60512c8ce2

Filed Under: Uncategorised

Daniel McClure Featured Image

Last Updated: December 13, 2018 Leave a Comment

Enable & Customise AMP Compatibility Within WordPress Themes

The following is a code snippet originally posted by Daniel McClure on GitHub as a Gist. functions.php Original Gist

Filed Under: GitHub Gist Tagged With: #PHP, #Wordpress

Daniel McClure Featured Image

Last Updated: December 13, 2018 Leave a Comment

Ethereum Greeter Updated from v4

The following is a code snippet originally posted by Daniel McClure on GitHub as a Gist. greeter.sol ``` pragma solidity ^0.5.0; contract mortal { /* Define variable owner of the type address */ address owner; /* This function is executed at initialisation and sets the owner of the

Filed Under: GitHub Gist Tagged With: #Ethereum, #Solidity

Daniel McClure Featured Image

Last Updated: December 13, 2018 Leave a Comment

Run WordPress Updates, WordPress Plugin Updates, and WordPress Theme Updates Automatically

The following is a code snippet originally posted by Daniel McClure on GitHub as a Gist. wp-config.php ```

Filed Under: GitHub Gist Tagged With: #PHP, #Wordpress

Daniel McClure Featured Image

Last Updated: December 13, 2018 Leave a Comment

Cheatsheet for customising the WordPress Login page

The following is a code snippet originally posted by Daniel McClure on GitHub as a Gist. functions.php ```

Filed Under: GitHub Gist Tagged With: #CSS, #PHP, #Wordpress

Daniel McClure Featured Image

Last Updated: December 13, 2018 Leave a Comment

Selectively Send Gravity Forms Notifications in Plain Text

The following is a code snippet originally posted by Daniel McClure on GitHub as a Gist. functions.php ```

Filed Under: GitHub Gist Tagged With: #Gravity Forms, #PHP, #Wordpress

Daniel McClure Featured Image

Last Updated: December 13, 2018 Leave a Comment

Delete Gravity Form Entries After Submission

The following is a code snippet originally posted by Daniel McClure on GitHub as a Gist. functions.php ```

Filed Under: GitHub Gist Tagged With: #PHP

Daniel McClure Featured Image

Last Updated: November 7, 2018 Leave a Comment

TwiML Bin: Enable SIP for Outgoing Calls via Twilio

The following is a code snippet originally posted by Daniel McClure on GitHub as a Gist. twiml.xml ``` {{To}} ``` Original Gist https://gist.github.com/d5f6bab133aa6edd3627c83d92f28bb9

Filed Under: GitHub Gist Tagged With: #XML

Daniel McClure Featured Image

Last Updated: November 7, 2018 Leave a Comment

TwiML Bin: Enable SIP for Incoming Calls via Twilio

The following is a code snippet originally posted by Daniel McClure on GitHub as a Gist. twiml.xml ``` USERNAME@SIP_DOMAIN.sip.us1.twilio.com ``` Original Gist https://gist.github.com/4d21f53846f26da99f48d8041223390a

Filed Under: GitHub Gist Tagged With: #XML

Daniel McClure Featured Image

Last Updated: November 6, 2018 Leave a Comment

Enable Archive Settings for multiple Custom Post Types via Genesis

The following is a code snippet originally posted by Daniel McClure on GitHub as a Gist. functions.php ```

Filed Under: GitHub Gist Tagged With: #PHP

Daniel McClure Featured Image

Last Updated: November 2, 2018 Leave a Comment

Register Theme Support for Gutenberg Wide Images

The following is a code snippet originally posted by Daniel McClure on GitHub as a Gist. functions.php ```php

Filed Under: GitHub Gist Tagged With: #CSS, #PHP, #Wordpress

Daniel McClure Featured Image

Last Updated: October 30, 2018 Leave a Comment

Enable excerpts for LearnDash Lessons

The following is a code snippet originally posted by Daniel McClure on GitHub as a Gist. ``` * Enable excerpts for LearnDash Lessons */ function add_excerpts_to_ld_lessons() { add_post_type_support( 'sfwd-lessons', 'excerpt' ); } add_action( 'init', 'badd_excerpts_to_ld_lessons'

Filed Under: GitHub Gist Tagged With: #PHP

Daniel McClure Featured Image

Last Updated: November 2, 2018 Leave a Comment

Increase WordPress Memory Allocation

The following is a code snippet originally posted by Daniel McClure on GitHub as a Gist. wp-config.php ```php /* Increase WordPress Memory Allocation */ define( 'WP_MEMORY_LIMIT', '128M' ); ``` Original Gist https://gist.github.com/danielmcclure/78757c016b99de86728d

Filed Under: GitHub Gist Tagged With: #PHP, #Wordpress

Daniel McClure

Work With Me

Get in touch if you’re interested in working together on your next project.

Contact Me

Creative Commons Licence

Copyright © 2025 Daniel McClure

All opinions shared through this site are that of their respective author and are not necessarily representative of the views of past/present clients, affiliate partners or businesses.
Some links include affiliate tracking for which I may earn a commission. See the Full Disclaimer Page for more information.