Genesis theme – use block editor in widgets
//* Genesis Enable the block-based widget editor add_filter( ‘use_widgets_block_editor’, ‘__return_true’ );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
//* Genesis Enable the block-based widget editor add_filter( ‘use_widgets_block_editor’, ‘__return_true’ );Continue reading
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_filter( ‘use_widgets_block_editor’, ‘__return_false’ );Continue reading
/** * Customize the stats that are shown in the Donation Stats widget. * * In this example, we only show the stats specific to a particular category. * * @param array $donation_stats The default stats to show. * @return…Continue reading