Title: $this by reference
Last modified: September 1, 2016

---

# $this by reference

 *  Resolved [Viktor Szépe](https://wordpress.org/support/users/szepeviktor/)
 * (@szepeviktor)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/this-by-reference/)
 * Hello!
 * Could you tell me why you need a refernce of $this all over Polylang?
 * `add_action( 'pll_language_defined', array( &$this, 'pll_language_defined' ),
   1 );`
 * Thank you.
 * [https://wordpress.org/plugins/polylang/](https://wordpress.org/plugins/polylang/)

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

 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/this-by-reference/#post-7463280)
 * Hi!
 * I learnt PHP by myself and probably saw this when I was a beginner. I kept the
   habit until recently when I discovered that’s useless 😉
 * It’s funny that you ask the question a few days after I have removed them all
   in the dev version 🙂 See: [https://github.com/polylang/polylang/commit/5ba81224112cf3532bd99f28368a37be9cc6147a](https://github.com/polylang/polylang/commit/5ba81224112cf3532bd99f28368a37be9cc6147a)
 *  Thread Starter [Viktor Szépe](https://wordpress.org/support/users/szepeviktor/)
 * (@szepeviktor)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/this-by-reference/#post-7463281)
 * OK.

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

The topic ‘$this by reference’ is closed to new replies.

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

 * 2 replies
 * 2 participants
 * Last reply from: [Viktor Szépe](https://wordpress.org/support/users/szepeviktor/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/this-by-reference/#post-7463281)
 * Status: resolved