Title: Filter request
Last modified: August 21, 2016

---

# Filter request

 *  [Nick Ciske](https://wordpress.org/support/users/nickciske/)
 * (@nickciske)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/filter-request-1/)
 * First off, is this plugin being maintained? It’s 2 major versions behind at this
   point…
 * If it is, I’d love a filter added so I can un fork my version.
 * In icit-spots.php, line 955-ish, a filter to allow me to change the spot id, 
   in this case to change the language via WPML (e.g. grab the French spot).
 * `$spot_id = apply_filters( 'widget_spot_id', $spot_id );`
 * Filter name is my best guess as your naming scheme, I can change my code to suit.
 * Here’s my code if anyone is curious:
 *     ```
       add_filter( 'widget_spot_id', 'change_spot_id' );
   
       function change_spot_id( $spot_id ){
   
       	$id = icl_object_id( $spot_id , get_post_type( $spot_id ), true, ICL_LANGUAGE_CODE);
   
       	if( $id )
       		return $id;
   
       	return $spot_id;
   
       }
       ```
   
 * [http://wordpress.org/plugins/spots/](http://wordpress.org/plugins/spots/)

The topic ‘Filter request’ is closed to new replies.

 * ![](https://ps.w.org/spots/assets/icon-256x256.png?rev=1025761)
 * [Spots](https://wordpress.org/plugins/spots/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/spots/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/spots/)
 * [Active Topics](https://wordpress.org/support/plugin/spots/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/spots/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/spots/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Nick Ciske](https://wordpress.org/support/users/nickciske/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/filter-request-1/)
 * Status: not resolved