Customize WooCommerce my account dashboard through plugin

I ended up doing it in what I would consider a sloppy way. On the init hook I check the WooCommerce template against my custom template and if the WooCommerce template does not match my template then I replace the WooCommerce template with my template. add_action( ‘init’, ‘run_inital’ ); function run_inital(){ $wooThemePath = $woocommerce->plugin_path().”/templates/myaccount/dashboard.php”; $myThemeFile … Read more

WordPress & WooCommerce: Localhost, Staging and production environments and how to sync them without losing data

I recommend to work with fixtures on localhost and development environments. Fixtures definition from Symfony documentation: Fixtures are used to load a “fake” set of data into a database that can then be used for testing or to help give you some interesting data while you’re developing your application. To work with fixtures on WordPress … Read more

Having trouble with WooCommerce Storefront child theme single.php “related posts” modification [closed]

The reason you’re getting a white screen is you never defined “$string”. You only concatenated it. In the future you can find your errors when creating functions by turning wp_debug to true in your wp_config.php file. Here is code that should work: function new_function() { //Arguments: posts, in classifieds category, that are published, and from … Read more