<?php
//Alternatively, you can use the wp_head hook instead. Wp_footer works best if using ReadyLaunch(tm)
function mepr_move_paypal_smart_buttons() { ?>
<script>
( function( $ ) {
$( document ).ready( function() {
var tos = $( '.mepr_tos' );
var prp = $( '#mepr_agree_to_privacy_policy1' ).parent().parent();
var payments = $( '.mepr-payment-methods-wrapper' );
if( null != tos && null != payments ) {
tos.insertBefore( payments );
}
if( null != prp && null != payments ) {
prp.insertBefore( payments );
});
})( jQuery );
</script>
<?php }
add_action( 'wp_footer', 'mepr_move_paypal_smart_buttons', 10 );