Year Shortcode

// Copy the Shortcode in the Insertion box below and paste it wherever you want the copyright symbol + year to be displayed. // This will output © 2023 or the current year automatically. echo “© ” . date( ‘Y’…Continue reading

Download Details Featured Image

function sd_edd_download_details_widget_thumbnail( $instance ) { $download_id = isset( $instance[‘download_id’] ) ? $instance[‘download_id’] : 0; if ( ‘current’ === $instance[‘display_type’] ) { $download_id = get_the_ID(); } if ( empty( $download_id ) || ! has_post_thumbnail( $download_id ) || ‘download’ !== get_post_type( $download_id…Continue reading

Add the_content to storefront template.

function jp_inject_the_content() { remove_action( ‘digitalstore_store_front’, ‘digitalstore_front_latest_downloads’, 2 ); add_action( ‘digitalstore_store_front’, ‘digitalstore_front_latest_downloads’, 3 ); add_action( ‘digitalstore_store_front’, ‘jp_add_content’, 2 ); } add_action( ‘init’, ‘jp_inject_the_content’ ); function jp_add_content() { echo apply_filters( ‘the_content’, get_post_field( ‘post_content’, get_the_ID() ) ); } add_action( ‘init’, ‘jp_add_content’ );Continue reading

Price Option Not Checked

function sumobi_edd_price_option_checked( $checked, $download_id, $key ) { return ”; } add_filter( ‘edd_price_option_checked’, ‘sumobi_edd_price_option_checked’, 10, 3 );Continue reading

Variable Pricing Dropdown

function edd_library_variable_price_dropdown() { function shoestrap_edd_purchase_variable_pricing( $download_id ) { $variable_pricing = edd_has_variable_prices( $download_id ); if ( ! $variable_pricing ) return; $prices = apply_filters( ‘edd_purchase_variable_prices’, edd_get_variable_prices( $download_id ), $download_id ); $type = edd_single_price_option_mode( $download_id ) ? ‘checkbox’ : ‘radio’; do_action( ‘edd_before_price_options’, $download_id…Continue reading

Enable Downloads in the WP REST API

/** * Adds additional arguments into the post type registration for downloads. * * @param array $download_args The existing array of arguments. * * @return array */ function eddwp_add_rest_for_dls( $download_args ) { $download_args[‘show_in_rest’] = true; $download_args[‘rest_base’] = ‘downloads’; return $download_args;…Continue reading

Remove Product Notes For Specific Downloads

function sumobi_edd_remove_product_notes( $notes, $download_id ) { // enter the download IDs you’d like to exclude into this array $downloads_to_exclude = array( 509, 104, 435 ); if ( in_array( $download_id, $downloads_to_exclude ) ) { return false; } return $notes; } add_filter(…Continue reading

Remove Price

function pw_edd_remove_price( $args ) { $args[‘price’] = ‘no’; return $args; } add_filter( ‘edd_purchase_link_defaults’, ‘pw_edd_remove_price’ );Continue reading