This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Don't forget to enter your own email on line 19 and user Sites dir path on line 20 | |
# set the slug | |
read -p "Enter the slug for the new site:" SLUG | |
# set the mysql password | |
read -s -p "Enter a MySQL password:" MYSQLPASS | |
# setup the directory and basic settings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# BEFORE YOU START: | |
# replace all instances of exampleproject with your real project usernames and local and remote paths | |
# make a backup of current local db | |
wp db export --add-drop-table | |
echo "✅ Make a backup of your current database state." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Square Candy ACF RGB color output | |
Plugin URI: http://squarecandydesign.com | |
Description: provides a function to output RGB values from ACF colorpicker fields | |
Author: Peter Wise | |
Version: 0.1 | |
Author URI: http://squarecandydesign.com | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Settings > Advanced > Stripe > Stripe Styles | |
#### Base Style | |
{ | |
"color": "#333", | |
"fontWeight": "300", | |
"fontFamily": "Merriweather, serif", | |
"fontSize": "16px", | |
"letterSpacing": "0.5px", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Admin Functions | |
( function( $ ) { | |
// better accessiblity and data entry for ACF | |
$(document).ready( function() { | |
// if there is a an "after_title" field group | |
if ( $( '#acf_after_title-sortables' ).length ) { | |
// listen for keydown inside the main title field for any add/edit screen | |
$('body.post-new-php, body.post-php').on( 'keydown', '#title', function( e ) { | |
var keyCode = event.keyCode || event.which; | |
// if the key is tab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Plugin Name: GiveWP Add Email Tag for Anonymous Checkbox | |
function give_anonymous_email_tag( $email_tags ) { | |
// Adds an email tag called {give_anonymous_status} to indicate whether the donor opted in or not. | |
$email_tags[] = array( | |
'tag' => 'give_anonymous_status', // The tag name. | |
'desc' => __( 'This outputs whether the donor opted-in to the anonymous option', 'give' ), // For admins. | |
'func' => 'render_give_anonymous_status_email_tag', // Callback to function below. | |
'context' => 'donation', | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function url_exists( $url ) { | |
$headers = get_headers($url); | |
return stripos( $headers[0], "200 OK" ) ? true : false; | |
} | |
function get_youtube_id( $url ) { | |
$youtubeid = explode('v=', $url); | |
$youtubeid = explode('&', $youtubeid[1]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a:1:{s:5:"4.7.0";a:3:{s:4:"list";a:675:{s:8:"fa-500px";s:14:" 500px";s:15:"fa-address-book";s:21:" address-book";s:17:"fa-address-book-o";s:23:" address-book-o";s:15:"fa-address-card";s:21:" address-card";s:17:"fa-address-card-o";s:23:" address-card-o";s:9:"fa-adjust";s:15:" adjust";s:6:"fa-adn";s:12:" adn";s:15:"fa-align-center";s:21:" align-center";s:16:"fa-align-justify";s:22:" align-justify";s:13:"fa-align-left";s:19:" align-left";s:14:"fa-align-right";s:20:" align-right";s:9:"fa-amazon";s:15:" amazon";s:12:"fa-ambulance";s:18:" ambulance";s:38:"fa-american-sign-language-interpreting";s:44:" american-sign-language-interpreting";s:9:"fa-anchor";s:15:" anchor";s:10:"fa-android";s:16:" android";s:12:"fa-angellist";s:18:" angellist";s:20:"fa-angle-double-down";s:26:" angle-double-down";s:20:"fa-angle-double-left";s:26:" angle-double-left";s:21:"fa-angle-double |