Category: Admin
fixed header
Empty Admin Dashboard
add_action( ‘wp_dashboard_setup’, function () { global $wp_meta_boxes; $wp_meta_boxes[‘dashboard’] = array(); remove_action( ‘welcome_panel’, ‘wp_welcome_panel’ ); }, 1000 );Continue reading
Disable Site Health
// Remove Tools Submenu Item for Site Health. add_action( ‘admin_menu’, function () { remove_submenu_page( ‘tools.php’, ‘site-health.php’ ); } ); // Prevent direct access to the Site Health page. add_action( ‘current_screen’, function () { $screen = get_current_screen(); if ( ‘site-health’ ===…Continue reading
Disable IP Geo lookup service
add_action( ‘wp_enqueue_scripts’, function() { wp_dequeue_script( ‘edd-pro-checkout’ ); }, 50 );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
Vendd Theme – Display Downloads Purchase Button
/** * Paste the following CSS into your child theme style.css file or custom CSS tool */ .vendd-price-button-container { position: static; display: block; border-top: none; box-shadow: none; } .product-link { display: none; }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
Digital Store Theme – Latest Downloads Number
function jp_ds_latest_downloads( $atts ) { $atts[‘limit’] = 3; // Set this number to whatever you want return $atts; } add_filter( ‘digitalstore_latest_downloads_atts’, ‘jp_ds_latest_downloads’ );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