Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- *
- * Disable login modal
- *
- */
- add_action( 'wp_footer', function() {
- ?>
- <script type="text/javascript">
- (function($) {
- "use strict";
- $(document).ready( function(){
- $('[data-bs-target="#modal-login"]').each(function() {
- var elm = $(this);
- elm.removeAttr('data-bs-toggle data-bs-target');
- elm.on('click', function(e){
- window.location.href = '<?php echo wp_login_url();?>';
- });
- });
- });
- })(jQuery);
- </script>
- <?php
- } );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement