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 | |
// Add a custom column to display favorite count of each post | |
add_filter('manage_post_posts_columns', 'add_favorited_users_column'); | |
function add_favorited_users_column($columns) { | |
$columns['favorited_users'] = 'Favorited Count'; | |
return $columns; | |
} |
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
let container = document /* document if re-running for all the page content, otherwise use the element that is being loaded in via ajax */ | |
/* Pro Accordion */ | |
if ( typeof doExtrasAccordion == 'function') { | |
doExtrasAccordion(container) | |
} | |
/* Pro Slider */ | |
if ( typeof doExtrasSlider == 'function') { | |
doExtrasSlider(container) |
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
jQuery(document).ready(function($) { | |
let infiniteScollerSelector = '#-infinite-scroller-2484-245'; /* ID of infinite scroller element */ | |
/* listen for append.infiniteScroll event */ | |
$(infiniteScollerSelector + ' .oxy-dynamic-list').on( 'append.infiniteScroll', function() { | |
/* code inside here that will run when the content is appended */ | |
NewerOlder