Skip to content

Instantly share code, notes, and snippets.

View arixwap's full-sized avatar

Arix Wap arixwap

  • Kesato
  • Bali - Indonesia
  • 07:12 (UTC +08:00)
  • LinkedIn in/arixwap
View GitHub Profile
@arixwap
arixwap / tailwind-text-stroke-color.html
Last active January 23, 2024 08:15
Create text stroke color in Tailwind CSS
<div class="text-stroke-red-500">
Your text
</div>
@arixwap
arixwap / acf-product-variation.php
Created May 22, 2022 08:40
This is how to create ACF rule location in product variation
<?php
/**
* ACF Location Rule Product Type - Product Variation
* Untested with repeater fields
*
* https://support.advancedcustomfields.com/forums/topic/custom-fields-on-woocommerce-product-variations/
*/
// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;
@arixwap
arixwap / remove-wc-product-gallery.php
Last active May 22, 2022 08:39
How to remove metabox product gallery in woocommerce admin page product detail
@arixwap
arixwap / wpml-language.php
Last active May 22, 2022 08:34
Wordpress WPML Language Function
<?php
/**
* Language Functions
*/
// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;
/**
@arixwap
arixwap / get_wc_template_email.php
Last active May 22, 2022 08:36
Get woocommerce email template as string
<?php
/**
* Get WooCommerce Template Email
*
* Ref : https://gist.github.com/craigedmonds/b65c65e02fd40bd381bf023ffef2c80e
*/
function get_wc_template_email($content, $heading = false) {
$wc_mail = new WC_Email();
$message = wc_get_template_html('emails/custom-content.php', [
'content' => $content,
@arixwap
arixwap / debug.php
Last active May 22, 2022 08:38
PHP Data Dump Function - Inspired by Laravel & Symfony
<?php
/**
* Data Dump & Exit
*
* @param any $data
* @param boolean $noExit
* @return string html pre tag
*/
function dd($data, $noExit = false) {
echo "<pre>";