diff --git a/book-template.php b/book-template.php index b90ffc4..844a1ac 100644 --- a/book-template.php +++ b/book-template.php @@ -8,21 +8,20 @@ Author URI: http://dropseaofulaula.blogspot.it/ Plugin URI: https://ulaulaman.github.io/book-template/ License: GPLv2 or later */ -/* ------------------------------------------------------ */ -# Load translations +# Caricamento traduzioni add_action('plugins_loaded', 'bt_load_translations'); function bt_load_translations() { load_plugin_textdomain( 'book-template', false, dirname( plugin_basename(__FILE__) ) . '/lang/' ); } -# Aggiunta metabox +# Caricamento metabox add_action( 'load-post.php', 'bookdata_meta_box_setup' ); add_action( 'load-post-new.php', 'bookdata_meta_box_setup' ); # Setup metabox function bookdata_meta_box_setup() { -# aggiunta del metabox +# Aggiunta del metabox add_action( 'add_meta_boxes', 'bookdata_meta_box' ); } @@ -40,7 +39,7 @@ function bookdata_meta_box() { ); } -# mostra il metabox +# Mostra il metabox function bookdata_class_meta_box( $post ) { ?> @@ -49,7 +48,7 @@ function bookdata_class_meta_box( $post ) { ?>