Created
July 17, 2026 20:41
-
-
Save greenhornet79/f12ae01f2f38988ffcb78ffce6fe3f98 to your computer and use it in GitHub Desktop.
hidden taxonomies
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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