Skip to content

Instantly share code, notes, and snippets.

View SeanChDavis's full-sized avatar
👋
Reach out.

Sean Christopher Davis SeanChDavis

👋
Reach out.
View GitHub Profile
@SeanChDavis
SeanChDavis / file.php
Last active December 3, 2016 18:21
EDD Move Checkout Social Icons
<?php // DO NOT COPY THIS LINE
remove_action( 'edd_checkout_form_top', 'edd_show_payment_icons' );
add_action( 'edd_checkout_form_top', 'edd_show_payment_icons', 999 );
@SeanChDavis
SeanChDavis / file.php
Created November 17, 2016 17:34
FES custom products name filter
<?php // DO NO COPY THIS LINE
function my_custom_products_translation( $products_name ){
return 'Nagranie';
}
add_filter( 'fes_product_constant_plural_uppercase', 'my_custom_products_translation' );
@SeanChDavis
SeanChDavis / file.css
Last active October 18, 2016 16:23
Volatyl Header Menu Support Unlimited Dropdowns
.header-navigation .menu li:hover > ul,
.header-navigation .menu li:hover ul li a {
display: block;
}
.header-navigation .menu li ul li ul {
position: absolute;
top: 0;
left: 0;
margin: 0;
@SeanChDavis
SeanChDavis / file.php
Created September 12, 2016 16:09
EDD Link Expired Text
<?php // DO NOT COPY THIS ENTIRE LINE
function sd_link_expired_text( $content ) {
$content = 'Your new text';
return $content;
}
add_filter( 'edd_download_link_expired_text', 'sd_link_expired_text' );
@SeanChDavis
SeanChDavis / file.php
Created August 25, 2016 16:45
EDD Checkout Cart Thumb Size
<?php // DO NOT COPY THIS LINE
function sd_change_checkout_thumb_image_size( $dimensions ) {
$dimensions = array( 60, 60 );
return $dimensions;
}
add_filter( 'edd_checkout_image_size', 'sd_change_checkout_thumb_image_size' );
@SeanChDavis
SeanChDavis / file.php
Created August 10, 2016 19:55
EDD Reviews remove output from product page
<?php // DO NOT COPY THIS LINE
if ( function_exists( 'edd_reviews' ) ) {
remove_filter( 'the_content', array( edd_reviews(), 'load_frontend' ) );
}
@SeanChDavis
SeanChDavis / file.php
Created August 3, 2016 18:15
EDD Email Templates Template Override
function sd_edd_et_clean() {
global $edd_options;
// wrap
echo '<div style="background: #efefef;padding: 0 0 30px;">';
// header
echo '<div style="margin:0 0 25px;">';
echo '<div style="width:640px;margin: 0 auto;">';
@SeanChDavis
SeanChDavis / file.php
Created July 9, 2016 17:16
Edd Move newsletter sign-up checkbox below personal Info on checkout
<?php // DO NOT COPY THIS LINE
// remove default placement of checkbox
remove_action('edd_purchase_form_before_submit', 'eddconstant_contact_constant_contact_fields', 100);
// add checkbox below personal info section
add_action('edd_purchase_form_user_info_fields', 'eddconstant_contact_constant_contact_fields', 100);
@SeanChDavis
SeanChDavis / file.php
Last active April 4, 2016 04:18
FES Edit Dashboard Products Tab
<?php // DO NOT COPY THIS LINE
function sd_vendor_dashboard_menu_products( $menu_items ) {
$menu_items['my_products']['name'] = 'My ' . EDD_FES()->helper->get_product_constant_name( $plural = true, $uppercase = true );
return $menu_items;
}
add_filter( 'fes_vendor_dashboard_menu', 'sd_vendor_dashboard_menu_products' );
@SeanChDavis
SeanChDavis / file.php
Created March 21, 2016 18:23
EDD adjust checkout discount format
<?php // DO NOT COPY THIS LINE
function pw_custom_discounts_html( $html, $discounts, $rate, $remove_url ) {
$html = str_replace( '%', ' %', $html );
return $html;
}
add_filter( 'edd_get_cart_discounts_html', 'pw_custom_discounts_html', 10, 4 );