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

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