friends = $friends; $this->register_hooks(); } /** * Register the WordPress hooks */ private function register_hooks() { add_filter( 'wp_sweep_excluded_taxonomies', array( $this, 'wp_sweep_excluded_taxonomies' ) ); } /** * WP Sweep * Prevent WP Sweep from sweeping our taxonomies. * * @since 2.0 * * @param array $excluded_taxonomies list of taxonomies excluded from sweeping. * @return array */ public function wp_sweep_excluded_taxonomies( $excluded_taxonomies ) { return array_merge( $excluded_taxonomies, array( User_Feed::TAXONOMY, Subscription::TAXONOMY ) ); } }