Skip to content

Instantly share code, notes, and snippets.

@TanvirHasan19
Created January 8, 2026 06:39
Show Gist options
  • Select an option

  • Save TanvirHasan19/0db70b9632f06c3692f6c6ff853199c1 to your computer and use it in GitHub Desktop.

Select an option

Save TanvirHasan19/0db70b9632f06c3692f6c6ff853199c1 to your computer and use it in GitHub Desktop.
remove resource and license
function remove_wcv_helpful_resources( $resources ) {
return array();
}
add_filter( 'wcv_helpful_resources', 'remove_wcv_helpful_resources', 10, 1 );
/**
* Hide the Helpful Resources and Plugins & Licenses cards with CSS and JavaScript
*/
function hide_wcv_dashboard_sections() {
// Only load on the marketplace dashboard page
$screen = get_current_screen();
if ( ! $screen || 'wc-vendors_page_wc-vendors-marketplace-dashboard' !== $screen->id ) {
return;
}
?>
<style type="text/css">
/* Hide the Helpful Resources card */
.helpful-links-card {
display: none !important;
}
/* Hide the Plugins & Licenses card */
.license-info-card {
display: none !important;
}
</style>
<script type="text/javascript">
(function() {
function hideDashboardSections() {
var helpfulCards = document.querySelectorAll('.helpful-links-card');
helpfulCards.forEach(function(card) {
card.style.display = 'none';
});
var licenseCards = document.querySelectorAll('.license-info-card');
licenseCards.forEach(function(card) {
card.style.display = 'none';
});
}
hideDashboardSections();
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', hideDashboardSections);
}
setTimeout(hideDashboardSections, 100);
setTimeout(hideDashboardSections, 500);
setTimeout(hideDashboardSections, 1000);
})();
</script>
<?php
}
add_action( 'admin_head', 'hide_wcv_dashboard_sections' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment