Skip to content

Instantly share code, notes, and snippets.

@digamber89
Created February 22, 2021 06:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save digamber89/ccf4070ed369ac523e8aa0a7eeb167f0 to your computer and use it in GitHub Desktop.
Save digamber89/ccf4070ed369ac523e8aa0a7eeb167f0 to your computer and use it in GitHub Desktop.
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