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 | |
/** | |
* This template adds thumbnails to your SearchWP Live Ajax Search results. | |
* | |
* Create a folder called searchwp-live-ajax-search in your child theme folder and copy this file in there. | |
* In order for this to work you require the SearchWP and SearchWP Live Ajax Search plugins installed and active. | |
* | |
*/ | |
?> |
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 | |
// Place the following code into your functions.php file in your child theme | |
add_filter('wooptpm_product_ids', function ($product_ids, $product) { | |
$product_ids['gla'] = 'gla_' . $product->get_id(); | |
return $product_ids; | |
}, 10, 2); | |
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 | |
/** | |
* This mu plugin deactivates the Pixel Manager | |
* while the Thrive Theme editor is active. | |
* | |
* Create a file disable-pmw-on-thrive-editor.php. | |
* Place it in the /mu-plugins/ folder within the /wp-content/ folder. | |
* If the /mu-plugins/ folder doesn't exist yet, it must be manually created. | |
*/ |
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
RENAME TABLE | |
wp_actionscheduler_logs TO custom_prefix_actionscheduler_logs, | |
wp_actionscheduler_groups TO custom_prefix_actionscheduler_groups, | |
wp_actionscheduler_claims TO custom_prefix_actionscheduler_claims, | |
wp_actionscheduler_actions TO custom_prefix_actionscheduler_actions |
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 | |
/** | |
* If you want to fire the ViewItem event on variable products when | |
* no variation has been selected yet, then use the following code in | |
* your functions.php file. | |
*/ | |
add_action('wp_footer', function () { | |
?> | |
<script> |
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 | |
/** | |
* Track custom add-to-cart conversions using the WooCommerce Pixel Manager | |
* | |
* Add this to your functions.php file | |
*/ | |
add_action('wp_footer', function () { | |
?> |
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 | |
/** | |
* Track ViewItem events in Facebook using the WooCommerce Pixel Manager | |
* Add this to functions.php | |
*/ | |
add_action('wp_footer', function (){ | |
?> | |
<script> |
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 | |
/* | |
* Since version 1.8.2 of the plugin. | |
* | |
* This filter will add aditional conversion ID and label pairs to the output | |
* of the Google Ads pixel. | |
* | |
* It will add the output to every page with the Google Ads remarketing pixel, | |
* including the purchase confirmation page. |
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
// First you'll need to load the gtag.js library | |
function load_library(){ | |
echo '<script async src="https://www.googletagmanager.com/gtag/js?id=GA_UA_PROPERTY_ID"></script>'; | |
} | |
// Then output the conversion tracking scripts | |
// The Google Ads conversion ID must include the "AW-" in front of the number | |
function (response) |
NewerOlder