- Download script
curl -fsSL https://gist.githubusercontent.com/EmranAhmed/a1a61b710f72317c775715fe1509e99d/raw/bootstrap.sh | bash -s
- Make it executable
chmod +x bootstrap.sh
./bootstrap.sh --domain=domain.com --user=myname
/** | |
- https://codepen.io/t_afif/pen/ExBVLBW | |
- https://css-tip.com/screen-dimension/ | |
*/ | |
@property --_w { | |
syntax: '<length>'; | |
inherits: true; |
const defaultConfig = require('@wordpress/scripts/config/webpack.config') | |
const WooCommerceDependencyExtractionWebpackPlugin = require('@woocommerce/dependency-extraction-webpack-plugin') | |
module.exports = { | |
...defaultConfig, | |
plugins : [ | |
...defaultConfig.plugins.filter((plugin) => plugin.constructor.name !== 'DependencyExtractionWebpackPlugin'), | |
new WooCommerceDependencyExtractionWebpackPlugin({ | |
/*requestToExternal(request) { | |
if (request.includes('utils')) { |
version: '3.7' | |
services: | |
mysql: | |
image: mariadb | |
ports: | |
- '3306' | |
environment: | |
MYSQL_ROOT_PASSWORD: password | |
MYSQL_DATABASE: wordpress | |
volumes: |
<?php | |
add_action( 'woocommerce_customer_save_address', 'jsforwp_update_address_for_orders', 10, 2 ); | |
function jsforwp_update_address_for_orders( $user_id ) { | |
$customer_meta = get_user_meta( $user_id ); | |
$customer_orders = get_posts( array( | |
'numberposts' => -1, | |
'meta_key' => '_customer_user', |
$url = 'https://www.youtube.com/watch?v=08f0tiLdk7w'; //a youtube video url | |
$autoembed = new WP_Embed(); //initialize the wordpress oEmbed helper class | |
$content = $autoembed->autoembed($url); //let's parse the url and get the embeded content |
<p>Happy Deal For WooCommerce Variation Swatches | |
<span class="big">Discount more than <strong>30%</strong></span></p> | |
<p><a class="button-primary" href="{pro_link}" target="_blank">Buy Now</a></p> |
/wp-content/themes/bridge/woocommerce/content-product.php
file to your child theme.<?php do_action('wvs_pro_variation_show_archive_variation'); ?>
end of the file before </li>
tag.content-product.php
file for example<?php
/**
* The template for displaying product content within loops
*
* This template can be overridden by copying it to yourtheme/woocommerce/content-product.php.
<?php | |
/** | |
* WooCommerce template overriding class | |
* | |
* @author obiPlabon | |
*/ | |
class WC_Template_Override { | |
/** |