Downloads Email Tag

/** * 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

Download Column Thumbnail

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

Hide Branda

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

Add Payment ID to Sales API

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

Allow Webp, SVG, ICO

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

starnacht.calecosmtics.at – Fonts, Headlines, Buttons, …

function add_style_to_footer_lonzo() { ?> body { background-color:#FFFFFF !important; font-family: “Montserrat”, serif; } .elementor-kit-6 { –e-global-color-primary: #a49b98; –e-global-color-secondary: #a5c693; –e-global-color-text: #706f6f; –e-global-color-accent: #c86a8f; –e-global-typography-primary-font-family: “Montserrat”; –e-global-typography-primary-font-weight: 300; –e-global-typography-secondary-font-family: “Montserrat”; –e-global-typography-secondary-font-weight: 600; –e-global-typography-text-font-family: “Montserrat”; –e-global-typography-text-font-weight: 300; –e-global-typography-accent-font-family: “Montserrat”; –e-global-typography-accent-font-weight: 800; } h1…Continue reading

Search only WP posts

function searchFilter($query) { if ($query->is_search) { if ( !isset($query->query_vars[‘post_type’]) ) { $query->set(‘post_type’, ‘post’); } } return $query; } add_filter(‘pre_get_posts’,’searchFilter’);Continue reading