Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Add an extra space after content of what's new
/**
* Add space after content of what's new.
*/
function rtmc_add_space_after_content() {
?>
<script>
console.log( rtMediaHook );
if( typeof rtMediaHook == "object" ){ // check if rtMediaHook defined or not
rtMediaHook.register(
'rtmedia_js_file_added', // hook id here
function ( args ) { // your function here
jQuery( '#whats-new' ).val( jQuery( '#whats-new' ).val() + ' ' );
return true;
}
);
}
</script>
<?php
}
add_action( 'wp_footer', 'rtmc_add_space_after_content' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment