Title: [Plugin: WordPress GPS] hook problem
Last modified: August 20, 2016

---

# [Plugin: WordPress GPS] hook problem

 *  Resolved [colouro](https://wordpress.org/support/users/colouro/)
 * (@colouro)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-wordpress-gps-hook-problem/)
 * How can I set hook to custom post type? if I write “edit.php?post_type=CPT” it
   is not working 🙁
 * [http://wordpress.org/extend/plugins/wordpress-gps/](http://wordpress.org/extend/plugins/wordpress-gps/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [colouro](https://wordpress.org/support/users/colouro/)
 * (@colouro)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-wordpress-gps-hook-problem/#post-2998674)
 * I have found an answer to it by myself…
 * So if you want pointers to be seen in custm post types, you need to name hook
   like this: “edit.php?post_type=examplePostType” and edit plugins include/gb_gps.
   php fule.
    - Open file.
    - Find the function “play_scenario”.
    - Change `global $pagenow` to `global $current_screen`.
    - Change line `if(GBGPS_Scenario::STOP == $this->scenarios[$id]->process($pagenow){`
      
      To `if(GBGPS_Scenario::STOP == $this->scenarios[$id]->process($current_screen-
      >parent_file)) {`

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: WordPress GPS] hook problem’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-gps_4f5158.svg)
 * [WordPress GPS](https://wordpress.org/plugins/wordpress-gps/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-gps/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-gps/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-gps/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-gps/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-gps/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [colouro](https://wordpress.org/support/users/colouro/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-wordpress-gps-hook-problem/#post-2998674)
 * Status: resolved