This file contains hidden or 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 my_custom_give_import_donation_fields( $options ) { | |
// Add 'Donor Age' field | |
$options['_give_fee_amount'] = [ | |
__( 'Recovered Fee', 'give' ), | |
__( 'Fee Recovery', 'give' ), | |
__( 'Fee Recovered', 'give' ), | |
__( 'Fee Covered', 'give' ), | |
]; |
This file contains hidden or 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 | |
namespace HWID\ACFGravity; | |
class ACF_GF_DropDown { | |
public static function init() { | |
add_filter( 'acf/load_field/key=FIELDKEY', [ 'HWID\ACFGravity\ACF_GF_DropDown', 'populate_gform_dropdown' ] ); | |
This file contains hidden or 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
version: 2 | |
jobs: | |
build: | |
working_directory: ~/user/repo | |
environment: | |
BASH_ENV: ~/.bashrc | |
docker: |
This file contains hidden or 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
name: cool-app | |
recipe: laravel | |
compose: | |
- docker-compose.yml | |
config: | |
php: '7.1' | |
via: nginx | |
webroot: public |
This file contains hidden or 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 | |
/** | |
* credit: https://github.com/humanmade/hm-core/blob/master/hm-core.functions.php#L1236 | |
* Like get_template_part() put lets you pass args to the template file | |
* Args are available in the tempalte as $template_args array | |
* @param string filepart | |
* @param mixed wp_args style argument list | |
*/ | |
This file contains hidden or 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 //* do not include php tag | |
add_filter( 'schema_output', 'schema_wp_override_description_yoast_seo_12345' ); | |
/* | |
* Override Schema description value with Yoast SEO description | |
*/ | |
function schema_wp_override_description_yoast_seo_12345( $schema_output ) { | |
// get description value from Yoast SEO post meta | |
$desc = get_post_meta( get_the_ID(), '_yoast_wpseo_metadesc', true); |
This file contains hidden or 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
// Ensure cart contents update when products are added to the cart via AJAX (place the following in functions.php). | |
// Used in conjunction with https://gist.github.com/DanielSantoro/1d0dc206e242239624eb71b2636ab148 | |
// Compatible with WooCommerce 3.0+. Thanks to Alex for assisting with an update! | |
function woocommerce_header_add_to_cart_fragment( $fragments ) { | |
global $woocommerce; | |
ob_start(); | |
?> |
This file contains hidden or 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
.btn > .caret, .gform_button > .caret, | |
.dropup > .btn > .caret, | |
.dropup > .gform_button > .caret { | |
border-top-color: #000 !important; | |
} | |
.gform_fields { | |
padding-left: 0; | |
list-style: none; | |
margin-left: -15px; |
This file contains hidden or 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 | |
use Carbon_Fields\Container\Container; | |
use Carbon_Fields\Field\Field; | |
$general_block = [ | |
Field::make('text', 'plain_text_block'), | |
Field::make('rich_text', 'rich_text_block'), | |
]; | |
$media_block = [ |
NewerOlder