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
// Math summation on columns | |
var myClasses= "column_one, column_two, column_three"; //give your columns key, you can use multiple by using comma | |
var totalText = "Total: "; // you can change the 'Total' text here | |
if(!$table.find('tfoot').length){ | |
jQuery("<tfoot></tfoot>").appendTo($table); | |
} |
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
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; | |
} | |
} |
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
//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 |
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
/** | |
* 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 ); |
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
<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[ |
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
<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[ |