ControlledChaos
7/22/2016 - 7:56 PM

Limits WordPress post title characters.

Limits WordPress post title characters.

<?php

function ccd_limit_title_chars() {
?>
    <script>jQuery( 'input#title' ).attr( 'maxlength', 36 );</script>
<?php
}
add_action( 'admin_footer', 'ccd_limit_title_chars' );

?>

Limit Post Title Length

WordPress Snippet