This file contains hidden or 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
<div class="text-stroke-red-500"> | |
Your text | |
</div> | |
This file contains hidden or 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 | |
/** | |
* 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; |
This file contains hidden or 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 | |
// Exit if accessed directly. | |
defined( 'ABSPATH' ) || exit; | |
// Check if plugin woocommerce is active | |
if ( ! class_exists( 'WooCommerce' ) ) return; | |
/** | |
* Remove metabox in product page | |
* |
This file contains hidden or 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 | |
/** | |
* Language Functions | |
*/ | |
// Exit if accessed directly. | |
defined( 'ABSPATH' ) || exit; | |
/** |
This file contains hidden or 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 | |
/** | |
* 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, |
This file contains hidden or 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 | |
/** | |
* Data Dump & Exit | |
* | |
* @param any $data | |
* @param boolean $noExit | |
* @return string html pre tag | |
*/ | |
function dd($data, $noExit = false) { | |
echo "<pre>"; |