Add Password Hint
function pd_add_standard_wp_password_hint() { ?>Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
function pd_add_standard_wp_password_hint() { ?>Continue reading
class EDD_SAFCE { public function __construct() { add_action( ‘edd_admin_sale_notice’, array( $this, ‘set_payment_id’ ), -1000, 2 ); add_action( ‘edd_email_send_before’, array( $this, ‘set_from_address’ ) ); } public function set_payment_id( $payment_id, $payment_data ) { global $edd_payment_id; $edd_payment_id = $payment_id; } public function set_from_address(…Continue reading
/** * EDD_Chained_Products Class * * @since 1.0.0 */ class EDD_Chained_Products { public function __construct() { // Actions add_action( ‘init’, array( $this, ‘textdomain’ ) ); add_action( ‘edd_post_add_to_cart’, array( $this, ‘maybe_add_chained_product’ ), 10, 3 ); add_action( ‘edd_meta_box_settings_fields’, array( $this, ‘download_chained_setting’ ),…Continue reading
function pw_eddwp_add_security_info() { ?> SSL Certificate AuthorityContinue reading
function pw_edd_one_item_checkout( $download_id, $options ) { if( edd_get_cart_quantity() >= 1 ) { edd_empty_cart(); } } add_action( ‘edd_pre_add_to_cart’, ‘pw_edd_one_item_checkout’, 10, 2 );Continue reading
/* * Sets the cart expiration to 48 hours */ function pw_edd_set_cart_expiration( $seconds ) { return 172800; // 48 hours in seconds } add_filter( ‘wp_session_expiration’,’pw_edd_set_cart_expiration’, 999990 );Continue reading
function pw_edd_do_on_complete_purchase( $payment_id = 0 ) { // Execute your code here } add_action( ‘edd_complete_purchase’, ‘pw_edd_do_on_complete_purchase’ );Continue reading
function sumobi_edd_receipt_show_download_files() { return false; } add_filter( ‘edd_receipt_show_download_files’, ‘sumobi_edd_receipt_show_download_files’ );Continue reading
/** * Unhook default EDD discount field */ remove_action( ‘edd_checkout_form_top’, ‘edd_discount_field’, -1 ); /** * Show discount field by default * If you want a button, simply add Apply discount after the input field. * Because the discount is applied…Continue reading
/* * Modify the required fields for checkout * * Fields are identified by the input fields “name” attribute. * * This example shows how to make the last name field, which has a name attribute of “edd_last”, required */…Continue reading