ControlledChaos
8/9/2016 - 2:33 AM

Limit the number of characters allowed in the post/page title field.

Limit the number of characters allowed in the post/page title field.

<?php function ccd_limit_title_chars() { ?>
    
    <!-- Change maxLength number to desired limit -->
    <script>jQuery( 'input#title' ).attr( 'maxlength', 36 );</script>
    
<?php } add_action( 'admin_footer', 'ccd_limit_title_chars' ); ?>

Limit Title Characters

WordPress Snippet