jobs:
build:
name: Build ${{ matrix.os }} - Bash
runs-on: ${{ matrix.os }}
if: ${{ !contains(github.event.head_commit.message, '#docs') }}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
--val: 15rem; /* use any length unit (px, em, ex, ch, rem, ...)*/ | |
--unitless-val: tan(atan2(var(--val), 1rem)); /** Fundamentally, tan(atan2()) is just a scalar between two dimensions. */ | |
--val2: 34%; /* use any length unit (px, em, ex, ch, rem, ...)*/ | |
--unitless-val2: tan(atan2(var(--val2), 1%)); /** Fundamentally, tan(atan2()) is just a scalar between two dimensions. */ | |
--val3: 34ch; /* use any length unit (px, em, ex, ch, rem, ...)*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
- https://codepen.io/t_afif/pen/ExBVLBW | |
- https://css-tip.com/screen-dimension/ | |
*/ | |
@property --_w { | |
syntax: '<length>'; | |
inherits: true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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')) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.7' | |
services: | |
mysql: | |
image: mariadb | |
ports: | |
- '3306' | |
environment: | |
MYSQL_ROOT_PASSWORD: password | |
MYSQL_DATABASE: wordpress | |
volumes: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
NewerOlder