When having problems with not updating shipping methods and total price when changing country and shipping methods add this code to the functions.php /***************************** * Refresh...
WooCommerce: Add Content to a Specific Order Email
PHP Snippet: Add Content to the WooCommerce Customer Processing Order Email /** * @snippet Add Text to Customer Processing Order Email * @how-to Get CustomizeWoo.com FREE * @author milangru */...
Add product images to Woocommerce emails
To be able to add woocommerce produst images to emails and to add styles to it, just add this code to functions.php or into plugin // // Adds image to WooCommerce order emails // function...
WooCommerce: Redirect single product pages to home page
/** * @snippet WooCommerce Redirect single product pages to home page */ add_action( 'wp', 'ts_redirect_product_pages', 99 ); function ts_redirect_product_pages() { if ( is_product() ) {...
Add footer to the WordPress page template
<?php wp_footer(); ?>
Add header to the WordPress page template
<?php wp_head(); ?>
Add menu to page.php in WordPress template
<?php wp_nav_menu( array( 'theme_location' => 'primary-menu', ) ); ?> To add menu to the page.php in WordPress template add...
Add php files in WordPress plugin
//include php files include( plugin_dir_path( __FILE__ ) . 'assets/backend/post-tipe-candidates.php'); include( plugin_dir_path( __FILE__ ) . 'assets/backend/acf-candidate.php');
Add back-end CSS to WordPress
//add backend css $myCssFileSrc = plugins_url( '/assets/css/style-backend.css', __FILE__ ); wp_enqueue_style( 'style-backend.css', $myCssFileSrc );
Create WordPress plugin
<?php /* Plugin Name: Aerotech Configuration Plugin Plugin URI: http://programmer.iz.rs Description: Changes the output from The Other Plugin using a bit of code Author: Milan Grujic Version:...