Skip to content

Instantly share code, notes, and snippets.

@pranali333
Created August 16, 2017 13:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pranali333/c5931f51d2b98ad36c5c806bafc84a22 to your computer and use it in GitHub Desktop.
Save pranali333/c5931f51d2b98ad36c5c806bafc84a22 to your computer and use it in GitHub Desktop.
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