bp_invites_js_bulk_admin_footer()
Javascript popup to confirm bulk revoke invitations.
Description
Source
File: bp-invites/bp-invites-admin.php
385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 | function bp_invites_js_bulk_admin_footer() { global $post_type ; if ( 'bp-invite' === $post_type ) { $confirm_title = __( 'Are you sure you want to revoke all selected invitation?' , 'buddyboss' ); ?> <script type= "text/javascript" > jQuery(document).ready( function () { var selector = jQuery( '#doaction' ); if ( selector.length ) { var confirm_message = '<?php echo $confirm_title; ?>' ; selector.click( function () { if (!confirm(confirm_message)) { return false; } }); } }); </script> <?php } } |
Changelog
Version | Description |
---|---|
BuddyBoss 1.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.