Title: Dev: gettext filter slows down
Last modified: September 19, 2017

---

# Dev: gettext filter slows down

 *  Resolved [Fabian](https://wordpress.org/support/users/fabifott/)
 * (@fabifott)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/dev-gettext-filter-slows-down/)
 * Hi,
    thank you Jeff for the plugin, its very useful to speedup the site.
 * While profiling my site, I found that Plugin Organizer itself has a little performance
   impact. Its the `add_filter('gettext', array($this, 'change_page_title'), 10,
   2);`, which causes the `change_page_title` function to trigger about 5k times
   on some pages. this causes a delay of ~200ms.
 * You can easily fix it by wrapping the inner condition around the add filter:
 *     ```
       if (isset($_REQUEST['PO_group_view']) && is_numeric($_REQUEST['PO_group_view'])) { 
         add_filter('gettext', array($this, 'change_page_title'), 10, 2);
       }
       ```
   
 * Can you add this to the next update?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Jeff Sterup](https://wordpress.org/support/users/foomagoo/)
 * (@foomagoo)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/dev-gettext-filter-slows-down/#post-9510526)
 * That is an excellent suggestion. I’ll add that to the next update.
 *  Thread Starter [Fabian](https://wordpress.org/support/users/fabifott/)
 * (@fabifott)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/dev-gettext-filter-slows-down/#post-9511534)
 * Thank you!
 *  Plugin Author [Jeff Sterup](https://wordpress.org/support/users/foomagoo/)
 * (@foomagoo)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/dev-gettext-filter-slows-down/#post-9624554)
 * Version 9.2.3 should fix this issue. Sorry it took so long to release it.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Dev: gettext filter slows down’ is closed to new replies.

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

 * 3 replies
 * 2 participants
 * Last reply from: [Jeff Sterup](https://wordpress.org/support/users/foomagoo/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/dev-gettext-filter-slows-down/#post-9624554)
 * Status: resolved