Title: Adding filter or hook to functions.php
Last modified: August 31, 2016

---

# Adding filter or hook to functions.php

 *  [nofski](https://wordpress.org/support/users/nofski/)
 * (@nofski)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/adding-filter-or-hook-to-functionsphp/)
 * Hello
 * I am using your plugin to great effect and love it now I can now add cash on 
   pick up as an option.
 * However I use a plugin that enhances woocommerce and when buyers choose the cash
   on pick up option. sellers were not notified of the sale, only admin.
 * I have added a line of code that trigers the email, directly into your plugin.
   However, when you update your plugin that line will disappear.
 * I kind of get what im supposed to do but I don’t actually know how to code it.
 * do I need to add a hook or filter into the funtions.php, do you have hooks in
   your plugin.
 * As you can probably tell by the way im wording stuff, is there any chance you
   can help me make my change upgrade safe.
 * Kind regards
    mark
 * [https://wordpress.org/plugins/wc-cash-on-pickup/](https://wordpress.org/plugins/wc-cash-on-pickup/)

The topic ‘Adding filter or hook to functions.php’ is closed to new replies.

 * ![](https://ps.w.org/wc-cash-on-pickup/assets/icon-256x256.png?rev=1777983)
 * [Cash On Pickup for WooCommerce](https://wordpress.org/plugins/wc-cash-on-pickup/)
 * [Support Threads](https://wordpress.org/support/plugin/wc-cash-on-pickup/)
 * [Active Topics](https://wordpress.org/support/plugin/wc-cash-on-pickup/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wc-cash-on-pickup/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wc-cash-on-pickup/reviews/)

## Tags

 * [email](https://wordpress.org/support/topic-tag/email/)
 * [multi-vendor](https://wordpress.org/support/topic-tag/multi-vendor/)

 * 0 replies
 * 1 participant
 * Last reply from: [nofski](https://wordpress.org/support/users/nofski/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/adding-filter-or-hook-to-functionsphp/)
 * Status: not resolved