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 this into your Chrome/Chromium | |
* Address Bar and Search settings as a New Search Engine | |
* Give it a shortcut name like "search" | |
* Set it as your default search engine | |
* Now every time you search through the Address Bar | |
* or type "search" then TAB you'll get your Google search results | |
* But without listicles and review sites | |
*/ | |
{google:baseURL}search?q=%s+-"Must-have"+-"best"+-"Top+10"+-"The+best+online"+-site%3Ag2.com+-site%3Acapterra.com+-site%3Atrustpilot.com+-site%3Areddit.com+-site%3Aquora.com+-site%3Acapterra.com.de |
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 | |
// Add Current Users Admin Color Scheme | |
// 1. Create helper function to grab individual colors easily | |
// 2. Add individual colors to document root as CSS variables | |
function wpptpcv_return_admin_colors() { | |
global $_wp_admin_css_colors; | |
// Get the user's selected color scheme name |
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: Impact Radius for WooCommerce | |
* Description: Output Impact Radius affiliate tracking codes to integrate with WooCommerce | |
* Author: The Events Calendar | |
* Author URI: https://evnt.is | |
* Version: 1.0 | |
*/ | |
add_action( 'init', function () { |
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
function doPost(e) { | |
var body = e.postData.contents; | |
var bodyJSON = JSON.parse(body); | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
var sheet = ss.getSheetByName("Submissions"); | |
var timeStamp = new Date(); | |
var time = Utilities.formatDate(timeStamp, "GMT-08:00", "MM/dd/yy, h:mm a"); | |
var lastRow = sheet.getLastRow(); |
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 | |
add_action('elementor/editor/before_enqueue_scripts', 'custom_editor_enqueue_scripts'); | |
// editor styles | |
function custom_editor_enqueue_scripts() { | |
// If you're making a GiveWP add-on and need the Give admin styles, you'll need to enqueue it here as well | |
wp_enqueue_style( 'give-admin-styles', GIVE_PLUGIN_URL . 'assets/dist/css/admin.rtl.css', array(), GIVE_VERSION ); |
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 | |
/** | |
* This template is used to display the donation grid with [give_donor_wall] | |
*/ | |
// Exit if accessed directly. | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; | |
} |
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 .documents class to divs of the Employee Onboarding Caldera Form | |
add_action( 'caldera_forms_grid_row_class', function($rowClass, $row, $config ){ | |
//Change your field ID here | |
if('CF5d8ceba87e343' == $config[ 'form_id' ]){ | |
if( $row==4 || $row==5 ) { | |
$rowClass .= ' documents'; | |
} | |
} |
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 | |
/** | |
* Adds a cURL version test to Site Health | |
* | |
* Info here: https://make.wordpress.org/core/2019/04/25/site-health-check-in-5-2/ | |
* NOTE: Requires version 5.2+ of WordPress | |
* | |
**/ |
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 Custom Donation Form Fields | |
* | |
* @param $form_id | |
*/ | |
function give_myprefix_custom_form_fields( $form_id ) { | |
if ( $form_id == 8) { | |
//$forms = array( 8 ); | |
?> |
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
/* | |
* Give-ify your Github | |
* Preview: https://cloudup.com/cGiBiRpMd3B | |
* | |
* Step 1: Install the "Refined Github" browser extension: https://github.com/sindresorhus/refined-github | |
* Step 2: Use it's Custom CSS field to paste the following. | |
*/ | |
@font-face { | |
font-family: give-icomoon; |
NewerOlder