Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Change sort order - Video Conferencing with Zoom API
<?php
add_action( 'wp_footer', 'cm_vczapi_change_sorting_for_recoring' );
function cm_vczapi_change_sorting_for_recoring() {
ob_start();
?>
(function($){
$recordingMeetingDatatable = $('.cm-vczapi-custom-data-table');
if($recordingMeetingDatatable !== undefined && $recordingMeetingDatatable.length > 0){
$recordingMeetingDatatable.DataTable({
responsive: true,
order:[0,'desc']
});
}
})(jQuery);
<?php
$content = ob_get_clean();
wp_add_inline_script( 'video-conferencing-with-zoom-api-shortcode-js', $content );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment