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 | |
| /** | |
| * FluentCart Product Transaction Hash Lookup | |
| * | |
| * @param int $product_id The product ID to check for | |
| * @return string The transaction hash if product was just purchased | |
| */ | |
| function get_fluentcart_product_trx_hash( $product_id ) { | |
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
| jQuery(document).ready(function($) { | |
| if($('html').attr('ng-app') == 'CTFrontendBuilder') return; | |
| var $carouselElement = $("#%%ELEMENT_ID%%"); | |
| var carousel = $carouselElement.find($carouselElement.children().data("carousel")); | |
| if (carousel && carousel.length) { | |
| var $carouselInner = $carouselElement.find('.oxy-carousel-builder_inner'); |
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
| // Watch for class changes on html tag | |
| if (!window.xClassChangeObserverAdded) { | |
| window.xClassChangeObserverAdded = true; | |
| let previousTheme = document.documentElement.classList.contains('cf-theme-dark') ? 'dark' : 'light'; | |
| const observer = new MutationObserver((mutations) => { | |
| mutations.forEach((mutation) => { | |
| if (mutation.type === 'attributes' && mutation.attributeName === 'class') { | |
| const classList = document.documentElement.classList; |
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
| WEBVTT | |
| 1 | |
| 00:00:00.666 --> 00:00:02.416 | |
| Every business starts somewhere | |
| 2 | |
| 00:00:02.625 --> 00:00:04.375 | |
| And |
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 | |
| // Array of post types to include the column | |
| function x_favorite_post_types() { | |
| return [ | |
| 'product' /* product post type */ | |
| ]; | |
| } |
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 | |
| add_action('enqueue_block_editor_assets', function() { | |
| wp_add_inline_style('wp-edit-blocks', ' | |
| .wp-block[data-type*="bricks-component"] > div::after, | |
| .wp-block[data-type*="default/gutenb"] > div::after { | |
| content: "See additional settings in the sidebar on the right"; | |
NewerOlder