Skip to content

Instantly share code, notes, and snippets.

@greenhornet79
Created July 17, 2026 20:41
Show Gist options
  • Select an option

  • Save greenhornet79/f12ae01f2f38988ffcb78ffce6fe3f98 to your computer and use it in GitHub Desktop.

Select an option

Save greenhornet79/f12ae01f2f38988ffcb78ffce6fe3f98 to your computer and use it in GitHub Desktop.
hidden taxonomies
<?php
add_filter('leaky_paywall_settings_hidden_taxonomies', function($hidden) {
// Hide taxonomies with too many terms to render in the dropdown.
$hidden[] = 'post_tag'; // if they have 10K+ tags
$hidden[] = 'their_custom_tax';
return $hidden;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment