I want to customize a plugin which uses a file called html-vendor-order-page.php to define the style of contents:
include_once( apply_filters( 'wcpv_vendor_order_page_template', dirname( __FILE__ ) . '/views/html-vendor-order-page.php' ) );
I want to create my own html-vendor-order-page.php by modifying this file and force the plugin to use this file instead by using add_filter.
I was thinking to filter __FILE__ which is a defined constant to point to my file.
Is that possible?