<?php
add_action('admin_footer', 'add_maxlength_to_post_title');
function add_maxlength_to_post_title(){ ?>
<script type="text/javascript">
jQuery( function($){
$('input#ID_ELEMENTO').attr('maxlength', 50); // numero de caracteres. modifique para o valor que quiser.
});
</script>
<?php } ?>
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.