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
/** | |
* iFrame Must have '&/?enablejsapi=1' | |
* | |
* @param slideIndex | |
*/ | |
function pauseVideoOnSlide(slide) | |
{ | |
var iframe = $(slide).find("iframe")[0]; | |
if (iframe) { |
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
{ | |
"scope": "text.html.ee", | |
"completions": | |
[ | |
{ "trigger": "{exp:", "contents": "exp:channel:" }, | |
{ "trigger": "{exp:channel:entries", "contents": "exp:channel:entries"}, | |
{ "trigger": "{exp:channel:info", "contents": "channel:info" } | |
] | |
} |
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
### Keybase proof | |
I hereby claim: | |
* I am jdeeburke on github. | |
* I am jdeeburke (https://keybase.io/jdeeburke) on keybase. | |
* I have a public key whose fingerprint is C2D9 B39F 978B E7C0 FE82 5036 900E 01F9 6145 173B | |
To claim this, I am signing this object: |
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
#!/bin/bash | |
######## Configuration | |
BACKUPS_DIR='database_backups' | |
LOCAL_HOST='' | |
LOCAL_USER='' | |
LOCAL_PASS='' | |
LOCAL_DB='' |
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 | |
add_filter( 'wc_checkout_add_ons_position', 'sv_custom_checkout_add_on_position' ); | |
function sv_custom_checkout_add_on_position( $position ) { | |
return 'woocommerce_checkout_after_terms_and_conditions'; | |
} |
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 | |
function override_csv_export_storage_method( $args ) { | |
// use the legacy filesystem data store | |
// $args['storage_method'] = 'filesystem'; | |
// use a new, custom data store | |
$args['storage_method'] = 'my-custom-data-store'; | |
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 | |
class Custom_CSV_Export_Data_Store extends WC_Customer_Order_CSV_Export_Data_Store { | |
/** | |
* Persists a single item. | |
* | |
* @param \WC_Customer_Order_XML_Export_Suite_Export $export the export object this item is a part of | |
* @param string $content the content to store | |
*/ |
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 | |
function get_custom_csv_export_data_store( $slug ) { | |
if ( 'my-custom-data-store' === $slug ) { | |
require_once 'path/to/csv_export_custom_data_store.php'; | |
return new Custom_CSV_Export_Data_Store(); | |
} |
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 | |
/** | |
* Tracks a social login authentication event with Google Analytics Pro. | |
* | |
* @param int $user_id the ID of the user that was just authenticated | |
* @param string $provider_id the social login provider ID that authenticated the user e.g. `facebook` | |
*/ | |
function sv_wc_google_analytics_pro_track_social_login_authentication( $user_id, $provider_id ) { |
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 | |
function sv_wc_google_analytics_pro_set_completed_renewal_purchase_event( $parameters ) { | |
if ( 'completed purchase' === $parameters['ea'] ) { | |
$order_id = (int) $parameters['el']; | |
if ( WC_Subscriptions_Renewal_Order::is_renewal( $order_id ) ) { | |
$parameters['ea'] = 'completed renewal purchase'; |
OlderNewer