Uncaught ReferenceError: module is not defined code example
Example 1: Uncaught ReferenceError: $ is not defined
<script src="https://code.jquery.com/jquery-1.9.1.js"></script>
<script src="path-para-seu-script"></script>
Example 2: Uncaught ReferenceError: commonL10n is not defined
add_action( 'admin_footer', function () {
?>
<script>
if ( typeof commonL10n === 'undefined' ) {
var commonL10n = { dismiss : 'Dismiss' };
}
</script>
<?php
}, 100 );