verygoodplugins

Untitled

Jun 18th, 2021
693
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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' );
RAW Paste Data