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
if (!-f $request_filename){ | |
set $rule_0 1$rule_0; | |
} | |
if ($rule_0 = "1"){ | |
rewrite ^/wp-content/uploads/(.*)$ https://example.com/wp-content/uploads/$1 last; | |
} |
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: Git Updater Ignore | |
* Plugin URI: https://gist.github.com/afragen/414612961ac500b652862096a54d62d7 | |
* Description: This plugin is used to set Git Updater to ignore specific repository slugs. | |
* Version: 0.3 | |
* Author: Andy Fragen | |
* License: MIT | |
* Requires at least: 5.2 | |
* Requires PHP: 5.6 |
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 Hide Stream (activity monitor plugin) | |
Plugin URI: https://gist.github.com/petertwise/5468e4d793c7ad89a32cb8e27de8ae3c | |
Version: 1.0 | |
Author: Square Candy | |
Author URI: https://squarecandydesign.com | |
License: GPLv2 | |
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
<div id="field1"> | |
<button type="button" id="sub" class="sub">-</button> | |
<input type="text" id="1" value="0" class="field" /> | |
<button type="button" id="add" class="add">+</button> | |
</div> |
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 widow_buster( $text, $min_words = 3, $max_chars = 16 ) { | |
$words = explode( ' ', $text ); | |
$word_count = count( $words ); | |
$char_length = strlen( $words[ $word_count - 2 ] ) + strlen( $words[ $word_count - 1 ] ); | |
// if our minimum word count and maximum character count are met, |
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 | |
# Setup ACF Pro to use a license key in wp-config | |
# | |
# 1. Place your license key in a file called .acf-license-key somewhere your ssh user has access to it. | |
# Default is in your home directory: ~/.acf-license-key | |
# Change the setting below if you need to put it somewhere else | |
# 2. install this file in /usr/local/bin or someplace in your PATH | |
# 3. make sure you have WP CLI installed | |
# 4. run acf-install-license from the root of your wordpress install |
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 | |
# Upgrade from github-updater 9.x to git-updater 10.x and git-updater-pro | |
# Instructions: | |
# 1. make sure you have WP CLI installed | |
# 2. install this file in /usr/local/bin or the executable path of your choice and make sure it has execute permissions | |
# 3. make a file called .gitupdater-download-link with the your personal download link and save it to /user/local/bin | |
# 4. make a file called .gitupdater-license-key with the your pro license key and save it to /user/local/bin | |
# 5. cd into your website's root dir and run `git-updater-upgrade` |
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 |
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', | |
); |
NewerOlder