Created
June 10, 2018 18:35
-
-
Save wpexplorer/cd016b08074ff9a94d2edd531d5466a3 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
add_action( 'wp_footer', function() { ?> | |
<script> | |
( function( $ ) { | |
'use strict'; | |
$( document ).on( 'ready', function() { | |
$( '.back-button' ).click( function() { | |
parent.history.back(); | |
return false; | |
} ); | |
} ); | |
} ( jQuery ) ); | |
</script> | |
<?php } ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment