Añade ayuda para las imágenes al crear entradas
This commit is contained in:
parent
bcb8953a07
commit
996c8b3354
1 changed files with 9 additions and 10 deletions
|
@ -7,17 +7,16 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
if ( !function_exists( 'write_log' ) ) {
|
/*
|
||||||
function write_log( $log ) {
|
* Add help text to screen in a metabox.
|
||||||
# if ( true === WP_DEBUG ) {
|
* See https://code.tutsplus.com/articles/customizing-the-wordpress-admin-help-text--wp-33281
|
||||||
if ( is_array( $log ) || is_object( $log ) ) {
|
*/
|
||||||
error_log( print_r( $log, true ), 3, '/tmp/manuel.cillero.errors.log' );
|
add_action( 'add_meta_boxes', 'help_featured_image_metabox' );
|
||||||
}
|
function help_featured_image_metabox() {
|
||||||
else {
|
add_meta_box( 'help-featured-image', 'Sobre la imagen destacada', 'help_featured_image_metabox_content', 'post', 'side' );
|
||||||
error_log( "$log\n", 3, '/tmp/manuel.cillero.errors.log' );
|
|
||||||
}
|
|
||||||
# }
|
|
||||||
}
|
}
|
||||||
|
function help_featured_image_metabox_content() {
|
||||||
|
echo("La mejor proporción para la imagen destacada es la que mantiene una relación de 2'5 a 1. Normalmente <tt>1030x403</tt>.</p>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue