Meta Manager - Version 1.0.5

Version Description

  • add filter hook "meta_manager_meta_box_display"
  • Meta Manager meta is box displayed in public post type only.
Download this release

Release Info

Developer jim912
Plugin Icon wp plugin Meta Manager
Version 1.0.5
Comparing to
See all releases

Code changes from version 1.0.4 to 1.0.5

Files changed (2) hide show
  1. meta-manager.php +5 -3
  2. readme.txt +5 -1
meta-manager.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
  /**
3
  * @package Meta Manager
4
- * @version 1.0.4
5
  */
6
  /*
7
  Plugin Name: Meta Manager
8
  Plugin URI: http://www.warna.info/
9
  Description: Outputs meta description and meta keywords in the element head.
10
  Author: Hitoshi Omagari
11
- Version: 1.0.4
12
  Author URI: http://www.warna.info/
13
  */
14
 
@@ -147,7 +147,9 @@ public function delete_term_meta( $term_id ) {
147
 
148
 
149
  public function add_post_meta_box( $post_type, $post ) {
150
- if ( isset( $post->post_type ) ) {
 
 
151
  add_meta_box( 'post_meta_box', 'メタ情報', array( &$this, 'post_meta_box' ), $post_type, 'normal', 'high');
152
  }
153
  }
1
  <?php
2
  /**
3
  * @package Meta Manager
4
+ * @version 1.0.5
5
  */
6
  /*
7
  Plugin Name: Meta Manager
8
  Plugin URI: http://www.warna.info/
9
  Description: Outputs meta description and meta keywords in the element head.
10
  Author: Hitoshi Omagari
11
+ Version: 1.0.5
12
  Author URI: http://www.warna.info/
13
  */
14
 
147
 
148
 
149
  public function add_post_meta_box( $post_type, $post ) {
150
+ $post_type_obj = get_post_type_object( $post_type );
151
+ $output_flag = apply_filters( 'meta_manager_meta_box_display', true, $post_type, $post );
152
+ if ( $post_type_obj && $post_type_obj->public && $output_flag ) {
153
  add_meta_box( 'post_meta_box', 'メタ情報', array( &$this, 'post_meta_box' ), $post_type, 'normal', 'high');
154
  }
155
  }
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: jim912
3
  Tags: SEO, keywords, description
4
  Requires at least: 3.0
5
  Tested up to: 3.4
6
- Stable tag: 1.0.4
7
 
8
  Outputs meta description and meta keywords in the element head.
9
 
@@ -12,6 +12,10 @@ Outputs meta description and meta keywords in the element head.
12
  Notice! Current version japanese only, yet.
13
 
14
  == Changelog ==
 
 
 
 
15
  = 1.0.4 =
16
  * Compatible up to: 3.4
17
 
3
  Tags: SEO, keywords, description
4
  Requires at least: 3.0
5
  Tested up to: 3.4
6
+ Stable tag: 1.0.5
7
 
8
  Outputs meta description and meta keywords in the element head.
9
 
12
  Notice! Current version japanese only, yet.
13
 
14
  == Changelog ==
15
+ = 1.0.5 =
16
+ * add filter hook "meta_manager_meta_box_display"
17
+ * Meta Manager meta is box displayed in public post type only.
18
+
19
  = 1.0.4 =
20
  * Compatible up to: 3.4
21