Pinterest AD
Tag ID: 2613440158478Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
Tag ID: 2613440158478Continue reading
google.com, pub-8822076209599189, DIRECT, f08c47fec0942fa0Continue reading
/** * Add a {downloads} tag for use in either the purchase receipt email or admin notification emails */ edd_add_email_tag( ‘downloads’, __( ‘A linked list of downloads purchased’, ‘edd’ ), ‘sumobi_edd_email_tag_downloads’ ); /** * The {downloads} email tag */ function…Continue reading
add_filter( ‘manage_edit-download_columns’, ‘cor_edd_manage_edit_download_columns’ ); /** * Insert the thumbnail column. */ function cor_edd_manage_edit_download_columns( $columns ) { //Below code will add new column without any text $column_thumbnail = array( ‘icon’ => false ); // Below code will show Thumbnail text in…Continue reading
function remove_menus(){ $current_user = wp_get_current_user(); if( ‘[email protected]’ !== $current_user->user_email){ remove_menu_page( ‘branding’ ); } } add_action( ‘admin_init’, ‘remove_menus’ );Continue reading
class EDD_Force_Login_And_Email { function __construct() { add_action( ‘plugins_loaded’, array( $this, ‘load’ ) ); } public function load() { add_filter( ‘edd_file_download_has_access’, array( $this, ‘check_access’ ), 9999, 3 ); } public function check_access( $has_access, $payment, $args ) { if( ! is_user_logged_in() )…Continue reading
function kjm_add_payment_id_to_sales_endpoint( $sales ) { foreach ( $sales[‘sales’] as $sale => $data ) { // If sequential order numbering is on, the ID key will be a string $payment = ( is_string( $data[‘ID’] ) ) ? edd_get_payment_by(‘payment_number’, $data[‘ID’]) : $data[‘ID’];…Continue reading
function allow_additional_mime_types($mime_types) { $mime_types[‘svg’] = ‘image/svg+xml’; $mime_types[‘webp’] = ‘image/webp’; $mime_types[‘ico’] = ‘image/vnd.microsoft.icon’; return $mime_types; } add_filter(‘upload_mimes’, ‘allow_additional_mime_types’);Continue reading
function add_fonts_to_head_lonzo() { ?> <?php } add_action( 'wp_head', 'add_fonts_to_head_lonzo' );Continue reading