Advertisement
verygoodplugins

Untitled

Jun 18th, 2021
994
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.27 KB | None | 0 0
  1. function wpf_limit_displayed_tags( $tags ) {
  2.  
  3.     foreach ( $tags as $i => $tag ) {
  4.         if ( false === strpos( $tag['category'], 'Member' ) ) {
  5.             unset( $tags[ $i ] );
  6.         }
  7.     }
  8.  
  9.     return $tags;
  10.  
  11. }
  12.  
  13. add_filter( 'wpf_get_setting_available_tags', 'wpf_limit_displayed_tags' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement