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
| function _rsp_disable_jetpack_infinite_scroll_conditionally() { | |
| if ( true === is_woocommerce() ) { | |
| remove_theme_support( 'infinite-scroll' ); | |
| } | |
| } | |
| add_action( 'template_redirect', '_rsp_disable_jetpack_infinite_scroll_conditionally', 9 ); |
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 | |
| /** | |
| * I am adding this within a loop | |
| **/ | |
| $current_user = wp_get_current_user(); | |
| // This is data that we get from the users profile, its auto-populated based on three fields. | |
| $user_filter_criteria = get_field('user_filter_criteria', 'user_'. $current_user->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 v1.9.1 included. Go allllll the way down | |
| */ | |
| $(document).ready(function() { | |
| // Removes first 3 chars from Topics list - By Jeff Pearce | |
| function setCharAt(str,index,chr) { | |
| if(index > str.length-1) return str; | |
| return str.substr(0,index) + chr + str.substr(index+1); |