Title: Include controller file in theme
Last modified: June 11, 2019

---

# Include controller file in theme

 *  Resolved [rahulsatija](https://wordpress.org/support/users/rahulsatija/)
 * (@rahulsatija)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/include-controller-file-in-theme/)
 * Hello team,
 * I need to include or override below file into my wordpress theme.
    wp-content\
   plugins\wc-frontend-manager\controllers\products\wcfm-controller-products.php
 * So any changes can be done in theme file rather than plugin file.
    Kindly provide
   solution for the same.

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

 *  Plugin Author [WC Lovers](https://wordpress.org/support/users/wclovers/)
 * (@wclovers)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/include-controller-file-in-theme/#post-11626603)
 * HI,
 * Sorry, it’s not possible. Only “views -> templates” can be override under child
   theme.
 * You may tweak controller codes using hook/filter.
 * Between, what you want to do here? I will know you most suitable process for 
   this!
 * Thank You
 *  Thread Starter [rahulsatija](https://wordpress.org/support/users/rahulsatija/)
 * (@rahulsatija)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/include-controller-file-in-theme/#post-11629320)
 * Hello Team,
 * I have a list of products under /product-manager/products/
 * This page we have a edit icon for product edit.
 * I just want to change edit link in the list.
 * Current function is
    get_wcfm_edit_product_url($wcfm_products_single->ID, $the_product)
 * \wc-frontend-manager\helpers\wcfm-core-functions.php
 * if(!function_exists(‘get_wcfm_edit_product_url’)) {
    function get_wcfm_edit_product_url(
   $product_id = ”, $the_product = array(), $language_code = ” ) { global $WCFM;
   $wcfm_page = get_wcfm_page( $language_code ); $wcfm_edit_product_url = wcfm_get_endpoint_url(‘
   wcfm-products-manage’, $product_id, $wcfm_page ); return apply_filters( ‘wcfm_edit_product_url’,
   $wcfm_edit_product_url ); } }
 * I want this code in my functions file or any other method or hook so I can change
   edit link as per my requirement.
 *  Plugin Author [WC Lovers](https://wordpress.org/support/users/wclovers/)
 * (@wclovers)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/include-controller-file-in-theme/#post-11635526)
 * HI,
 * Please use this filter for the purpose – apply_filters( ‘wcfm_edit_product_url’,
   $wcfm_edit_product_url );
 * Thank You

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

The topic ‘Include controller file in theme’ is closed to new replies.

 * ![](https://ps.w.org/wc-frontend-manager/assets/icon-256x256.jpg?rev=1800818)
 * [WCFM - Frontend Manager for WooCommerce](https://wordpress.org/plugins/wc-frontend-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wc-frontend-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wc-frontend-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/wc-frontend-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wc-frontend-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wc-frontend-manager/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [WC Lovers](https://wordpress.org/support/users/wclovers/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/include-controller-file-in-theme/#post-11635526)
 * Status: resolved