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
add_filter('use_block_editor_for_post', '__return_false'); |
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 | |
/** | |
* Created by PhpStorm. | |
* Plugin Name: Berean Baptist Church Calendar Import Fixer | |
* Description: Forces removal of events no longer represented in the imported calendar. | |
* Version: 0.0.1 | |
* Author: Steve Dwire for Berean Baptist Church | |
* Author URI: https://www.berean-baptist.org/ | |
* 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
<?php | |
function handle_remote_cache_requests_for_local() { | |
global $_wp_using_ext_object_cache; | |
if ( | |
empty( $_wp_using_ext_object_cache ) | |
|| ! isset( $_REQUEST['check'], $_REQUEST['command'] ) | |
|| ! function_exists( 'wp_cache_' . $_REQUEST['command'] ) | |
|| str_replace( ABSPATH, '', __FILE__ ) !== $_REQUEST['check'] | |
) { |
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 | |
/* | |
* Description: Modifies the timezone and the time of imported events, if the source | |
* feed timezone is UTC | |
* | |
* Usage: Copy the snippet into your theme's (preferably child theme's) functions.php file. | |
* Modify the URL and the timezone at the end of the code based on your needs | |
* Timzone name list: the TZ* column on this page | |
* https://en.wikipedia.org/wiki/List_of_tz_database_time_zones | |
* |
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 // Don't use this line. | |
/* | |
* Add the script below to wherever you store custom code snippets | |
* in your site, whether that's your child theme's functions.php, | |
* a custom plugin file, or through a code snippet plugin. | |
*/ | |
/** | |
* This function will connect wp_mail to your authenticated |
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 | |
* | |
* @package Custom_Featured_Post_Widget | |
* @author Gary Jones | |
* @license GPL-2.0+ | |
* @link http://gamajo.com/ | |
* @copyright 2013 Gary Jones, Gamajo Tech | |
*/ |
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
// October 11, 2015 Change search form text from https://wpbeaches.com/change-search-field-default-text-genesis-wordpress-theme/ | |
function themeprefix_search_button_text( $text ) { | |
return ( 'Start Typing...'); | |
} | |
add_filter( 'genesis_search_text', 'themeprefix_search_button_text' ); | |
function b3m_search_form( $form, $search_text, $button_text, $label ) { | |
$onfocus = " onfocus=\"if (this.value == '$search_text') {this.value = '';}\""; | |
$onblur = " onblur=\"if (this.value == '') {this.value = '$search_text';}\""; |
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
# Create a directory named "Sublime Text 3 Sync" under iCloud Drive | |
mkdir ~/Library/Mobile\ Documents/com~apple~CloudDocs/SubLime\ Text\ 3\ Sync | |
# Enter Sublime Text 3's directory | |
cd ~/Library/Application\ Support/Sublime\ Text\ 3/ | |
# Move "Installed Packages" directory to iCloud Drive and make a link | |
mv Installed\ Packages/ ~/Library/Mobile\ Documents/com~apple~CloudDocs/SubLime\ Text\ 3\ Sync/ | |
ln -s ~/Library/Mobile\ Documents/com~apple~CloudDocs/SubLime\ Text\ 3\ Sync/Installed\ Packages |
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 | |
/** | |
* Debug Genesis Attributes | |
* @author Bryan Willis | |
*/ | |
add_action( 'wp_footer', 'debug_genesis_attr_filters' ); | |
function debug_genesis_attr_filters() | |
{ | |
global $wp_filter; // current_filter() might be a better way to do this | |
$genesis_attr_filters = array (); |
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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
// Color Map | |
$colors: ( | |
blue: #0000FF, | |
red: ( | |
base: #FF0000, | |
light: #EEEEFF, |
NewerOlder