Title: Use plugin specific function names
Last modified: August 30, 2016

---

# Use plugin specific function names

 *  Resolved [megamurmulis](https://wordpress.org/support/users/megamurmulis/)
 * (@megamurmulis)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/use-plugin-specific-function-names/)
 * PLUGIN: yoast-seo-fix-for-qtranslate
    VERSION: All (including v1.2.1)
 * **1.** Please change your function names to something unique – to avoid running
   into error “function already exists”:
    `function qtranslate_filter($title)`
 * **2.** And since both functions share same parameters, priority – you can use
   same function for all:
 *     ```
       function ysffq_qtranslate_filter($text){
       	return __($text);
       }
       add_filter('wpseo_title',           'ysffq_qtranslate_filter', 10, 3);
       add_filter('wpseo_metadesc',        'ysffq_qtranslate_filter', 10, 3);
       add_filter('wpseo_metakey',         'ysffq_qtranslate_filter', 10, 3);
       add_filter('wpseo_opengraph_title', 'ysffq_qtranslate_filter', 10, 3);
       ```
   
 * [https://wordpress.org/plugins/yoast-seo-fix-for-qtranslate/](https://wordpress.org/plugins/yoast-seo-fix-for-qtranslate/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Luka Petrovic](https://wordpress.org/support/users/lupetalo/)
 * (@lupetalo)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/use-plugin-specific-function-names/#post-6681779)
 * Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Use plugin specific function names’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/yoast-seo-fix-for-qtranslate.svg)
 * [Fix for Yoast SEO and qTranslate/qTranslateX](https://wordpress.org/plugins/yoast-seo-fix-for-qtranslate/)
 * [Support Threads](https://wordpress.org/support/plugin/yoast-seo-fix-for-qtranslate/)
 * [Active Topics](https://wordpress.org/support/plugin/yoast-seo-fix-for-qtranslate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yoast-seo-fix-for-qtranslate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yoast-seo-fix-for-qtranslate/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Luka Petrovic](https://wordpress.org/support/users/lupetalo/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/use-plugin-specific-function-names/#post-6681779)
 * Status: resolved