location of add_filter custom code
-
this is probably (yet another) dumb question, but according to the documentation the way I interpreted it, all the
add_filter(0)
code is supposed to go into the child themefunction.php
script.so i am currently putting all of my custom code into:
/wp-content/themes/astra-child/functions.php
is this correct? i am assuming if we happen to change themes, this code would need to be migrated to the new theme
function.php
script.or is there a special
wooCommerce function.php
script its supposed to go into? perhaps one of these?./wp-content/plugins/woocommerce-product-addon/inc/functions.php
./wp-content/plugins/woocommerce/src/StoreApi/functions.php
./wp-content/plugins/woocommerce/src/Blocks/Domain/Services/functions.php
./wp-content/plugins/woocommerce/packages/action-scheduler/deprecated/functions.php
./wp-content/plugins/woocommerce/packages/action-scheduler/functions.php
- The topic ‘location of add_filter custom code’ is closed to new replies.