-
-
Save ericandrewlewis/3f3f39dc7ebdc4a56681 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 | |
// ...<snip>... | |
<span class="milestone"><# wp.hooks.applyFilters('milestonerevs.metadata', data) #></span> | |
// ...<snip>... | |
add_action( 'admin_footer-revision.php', 'wpse151630_test' ); | |
function wpse151630_test() { | |
?> | |
<script> | |
(function($) { | |
wp.hooks.addFilter('milestonerevs.metadata', function( data ) { | |
return data.id; | |
}, 100); | |
}); | |
})(jQuery); | |
</script> | |
<?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment