Created
February 22, 2021 06:18
-
-
Save digamber89/ccf4070ed369ac523e8aa0a7eeb167f0 to your computer and use it in GitHub Desktop.
Change sort order - Video Conferencing with Zoom API
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 | |
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