Advertisement
nshelper

Untitled

Nov 17th, 2023
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. add_filter ( 'woogc/ps/interfaces/synchronize_to_sites', 'woogc_ps_interfaces_synchronize_to_sites' );
  2. function woogc_ps_interfaces_synchronize_to_sites( $sites )
  3. {
  4.  
  5. $keep_shops = array ( 2, 3, 5 );
  6.  
  7. foreach ( $sites as $key => $site )
  8. {
  9. if ( ! in_array ( $site->blog_id, $keep_shops ) )
  10. unset ( $sites[ $key ] );
  11. }
  12.  
  13. return $sites;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement