• Resolved rahulsatija

    (@rahulsatija)


    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

    (@wclovers)

    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

    (@rahulsatija)

    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

    (@wclovers)

    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.