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 // DO NOT COPY THIS LINE | |
function sd_edd_featured_image_support() { | |
add_theme_support( 'post-thumbnails', array( 'post', 'page', 'download' ) ); | |
} | |
add_action( 'after_setup_theme', 'sd_edd_featured_image_support' ); |
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 // DO NOT COPY THIS LINE | |
function sd_vendor_dashboard_menu( $menu_items ) { | |
$menu_items['tax_form'] = array( | |
"icon" => "earnings", | |
"task" => array( 'tax_form', '' ), | |
"name" => __( 'Tax Form', 'edd_fes' ), | |
); | |
return $menu_items; | |
} |
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 // DO NOT COPY THIS LINE | |
function sd_fes_vendor_title( $vendor_title ) { | |
$append = ' Gallery'; | |
return $vendor_title . $append; | |
} | |
add_filter( 'fes_change_the_title', 'sd_fes_vendor_title' ); |
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 // DO NOT COPY THIS LINE | |
/** | |
* Disable commissions email from EDD Commissions extension | |
*/ | |
remove_action( 'eddc_insert_commission', 'eddc_email_alert', 10 ); |
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 // DO NOT COPY THIS LINE | |
function sd_fes_remove_profile_tab( $menu_items ) { | |
unset( $menu_items['profile'] ); | |
return $menu_items; | |
} | |
add_filter( 'fes_vendor_dashboard_menu', 'sd_fes_remove_profile_tab' ); |
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 // DO NOT COPY THIS LINE | |
function sd_cfm_receipt_field( $payment ) { | |
?> | |
<tr> | |
<td><strong><?php _e( 'Custom Field', 'edd' ); ?>:</strong></td> | |
<td><?php echo get_post_meta( $payment->ID, 'custom_field', true ); ?></td> | |
</tr> | |
<?php |
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 // DO NOT COPY THIS LINE - start at line 4 | |
// add Vendd product images square | |
function custom_ward_kelley_product_images() { | |
add_image_size( 'vendd_product_image', 722, 722, true ); | |
} | |
add_action( 'init', 'custom_ward_kelley_product_images' ); |
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 // DO NOT COPY THIS LINE | |
// vendor registration redirect | |
function sd_fes_vendor_registration_redirect( $response, $post_id, $form_id ) { | |
$response['redirect_to'] = 'http://google.com/'; | |
return $response; | |
} | |
add_filter( 'fes_register_form_pending_vendor', 'sd_fes_vendor_registration_redirect', 10, 3 ); | |
add_filter( 'fes_register_form_frontend_vendor', 'sd_fes_vendor_registration_redirect', 10, 3 ); |
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
/* | |
* Adds comment support to the download post type | |
*/ | |
function pw_edd_comments() { | |
add_post_type_support( 'download', 'comments' ); | |
} | |
add_action( 'init', 'pw_edd_comments', 999 ); |