Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //add maxlength to post/page/custom post type title field
- add_action('admin_footer', 'add_maxlength_to_post_title');
- function add_maxlength_to_post_title(){ ?>
- <script type="text/javascript">
- jQuery( function($){
- $('input#title').attr('maxlength', 30);
- });
- </script>
- <?php }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement