Edit php files in the plugin
I need to change order of First name and Last name fileds on the registration screen, which meets Japanese style. In order to realize it, I need to edit the file of /wp-content/plugins/woo-coupon-usage-pro/inc/registration/registration-form.php. I , however, do not want to directry edit the PHP file in plugin folder so that I copy it to various directory structures of Child-theme of Mesmerize-Child and then edit the file. Unfortunately, it seems to me nothing is worked to overwrite the original file. I think the plugin does not have such feature of copy files to child theme. I really appreciate if you could add the feature.


2 Kommentare
Hi, It is not possible to copy the file of a plugin into your theme and overwrite them. This is not a WordPress feature. There are no plans to implement any functionality for this currently.
You could technically copy the wcusage_couponusage_register( $atts ) function , with a new name , and create a custom shortcode for that. However , this would prevent any updates we may make to this function in the future from working on your form unless you update the code again manually.
Thank you for your suggestions.
As I also may need to set the fields of Fist name and Last name as required fields so taht I intend to realize such customazation, handling risk management myself until any new features addressed in the future.
This request is closed for new comments.