View Interstitial JavaScript Redirect With WP Redirection by John Godley
add_action( 'redirection_url_target', 'wp_redirection_target'); | |
function wp_redirection_target($url){ | |
if(!defined('THE_REDIRECTION_TARGET')){ | |
define('THE_REDIRECTION_TARGET',$url); | |
return true; | |
} | |
} |
View ld-auto-mark-complete.php
//thanks to https://gist.github.com/sultann/24baa5483b4632c3cf214a8de5648204#file-ld-auto-mark-complete-php-L17 for most of | |
//this code, i just corrected it to work with ld_lesson_tag to grab the tags as the original version returned empty | |
//array since it was looking for standard wp tags | |
function ld_is_tagged($postId) { | |
//get all learndash tags on post | |
$tags = wp_get_post_terms($postId,'ld_lesson_tag'); | |
foreach ($tags as $tag) { | |
//need to check for auto-mark-complete tag exists on this post |
View add-to-functions.php
/** | |
* Dequeue the 2nd bootstrap script added by accordian plugin | |
* | |
* Hooked to the wp_print_scripts action, with a late priority (100), | |
* so that it is after the script was enqueued. | |
*/ | |
function second_bootstrap_dequeue_script() { | |
wp_dequeue_script( 'wpsm_ac_bootstrap-js-front' ); | |
} | |
add_action( 'wp_print_scripts', 'second_bootstrap_dequeue_script', 100 ); |
View cache_category_data.xml
<modification> | |
<id>Cache category data to speed up page load for store with many categories and sub categories.</id> | |
<version>1.0.1</version> | |
<vqmver>2.3.2</vqmver> | |
<author>Weismann Web - www.weismannweb.com</author> | |
<file name="catalog/controller/extension/module/category.php"> | |
<operation> | |
<search position="after"><![CDATA[ |
View cache_category_data.xml
<modification> | |
<id>Cache category data to speed up page load for store with many categories and sub categories.</id> | |
<version>1.0.1</version> | |
<vqmver>2.3.2</vqmver> | |
<author>Weismann Web - www.weismannweb.com</author> | |
<file name="catalog/controller/module/category.php"> | |
<operation> | |
<search position="after"><![CDATA[ |