mogeh (@mogeh) - WordPress user profile | WordPress.org Step 1: Create a child theme folder. Thanks to a nifty plugin called Child Theme Configurator, it's probably not so hard after all. First, you'll want to create a folder where you can place all the template files and assets of your child theme. Here's an example. But the call to wc_product_has_unique_sku() at line 1547 in the save_variations() method of the WC_Meta_Box_Product_Data class, found inside that aforementioned class-wc-meta-box-product-data.php file, does not. We've already published a basic tutorial on how to create and use child themes.However, while overriding template files in a child theme is easy, overriding parent theme functions in a child theme takes some additional effort if you want to do it the right way. How to Create a WordPress Child Theme: Step-by-Step Guide (2021) A class to copy into your WordPress plugin, to allow loading template parts with fallback through the child theme > parent theme > plugin. add_shortcode ('cs_user_login', 'custom_cs_user_login_shortcode'); I have a WordPress website that relies heavily on a plugin. Modify a Plugin's PHP Class in WordPress. That doesn't solve the problem for the user end like you indicated. Overriding WooCommerce (or any WordPress plugin) functions: a semi ... Override a plugin function or constant via a child theme's functions ... The best practice to customize your WordPress (parent) theme and override template files or functions is by using a child theme. WordPress: Building Child Themes Online Class - Lynda It will also load myplugin-slug.php and functions.php in the correct order to be able to override the parent's functions and CSS. Check out the new WordPress Code Reference! Without really digging into the plugin or your code it's hard to give you an example. I've been looking for some sort of functionality like a child plugin but have come to the realization, like you, that hooks and filters are the best way. Click on the button Childify Me. To create this folder, you'll use File Manager in the control panel of your WordPress hosting provider. 4. How to override parent theme functions in a child theme