Wp3.5 Media Gallery Edit modal: change captions to title
-
04-11-2019 - |
Pregunta
How can i change those editing inputs to title from caption?
Some sources i found about new upload system:
- Using the WordPress 3.5 Media Uploader within plugins
- How to Add the WordPress 3.5 Media Manager Interface
Basically looking for a proper solution like this:
// http://wordpress.org/support/topic/wp-35-any-way-to-default-add-media-to-upload-files#post-3709109
// If you want to have the editor default to the Upload Files tab in the admin editor
add_action( 'admin_footer-post-new.php', 'idealien_mediaDefault_script' );
add_action( 'admin_footer-post.php', 'idealien_mediaDefault_script' );
function idealien_mediaDefault_script()
{
?>
<script type="text/javascript">
jQuery(document).ready(function($){
wp.media.controller.Library.prototype.defaults.contentUserSetting = false; // making editor default to the Upload Files
});
</script>
<?php }
No hay solución correcta
Licenciado bajo: CC-BY-SA con atribución
No afiliado a wordpress.stackexchange