-
-
Save Angelfirenze/8834907 to your computer and use it in GitHub Desktop.
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 | |
/* | |
* Plugin Name: EDD Double Pagination | |
*/ | |
function pw_edd_duplicate_pagination() { | |
?> | |
<script type="text/javascript"> | |
jQuery(document).ready(function($) { | |
var html = $('#edd_download_pagination').clone(); | |
html.attr('id', 'edd_download_pagination_top'); | |
html.insertBefore( '.edd_downloads_list' ); | |
}); | |
</script> | |
<?php | |
} | |
add_action( 'wp_footer', 'pw_edd_duplicate_pagination' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment