Title: Error: PHP Strict Standards
Last modified: February 8, 2017

---

# Error: PHP Strict Standards

 *  Resolved [jenrosario13](https://wordpress.org/support/users/jenrosario13/)
 * (@jenrosario13)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/error-php-strict-standards/)
 * Hi. I’m getting this error with your plugin:
 * PHP Strict Standards: Only variables should be passed by reference in /var/www/
   html/run/wp-content/plugins/wc-ac-hook/wc-ac-hook.php on line 105
 * Might be a bug in the code?
 * reference:
    $last_default_tag = end(explode(‘,’,$default_tags));
 * [http://stackoverflow.com/a/33127737](http://stackoverflow.com/a/33127737)
 * Thanks for the help.

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

 *  Plugin Author [mtreherne](https://wordpress.org/support/users/mtreherne/)
 * (@mtreherne)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/error-php-strict-standards/#post-8783546)
 * Thank you. It is an error with respect to coding standards. The parameter to 
   the end function should be an array not a function returning an array. It appears
   that it still works (functionally), but a warning will be reported if you have
   E_STRICT set for your PHP install. I will correct the code in due course.
 *  Thread Starter [jenrosario13](https://wordpress.org/support/users/jenrosario13/)
 * (@jenrosario13)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/error-php-strict-standards/#post-8783921)
 * Got it. Thanks so much for the quick response!

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

The topic ‘Error: PHP Strict Standards’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wc-ac-hook.svg)
 * [WC-AC Hook](https://wordpress.org/plugins/wc-ac-hook/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wc-ac-hook/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wc-ac-hook/)
 * [Active Topics](https://wordpress.org/support/plugin/wc-ac-hook/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wc-ac-hook/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wc-ac-hook/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [jenrosario13](https://wordpress.org/support/users/jenrosario13/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/error-php-strict-standards/#post-8783921)
 * Status: resolved