Plugin Directory

Changeset 1220506


Ignore:
Timestamp:
08/14/2015 02:10:07 AM (11 years ago)
Author:
s-hiroshi
Message:

Remove add_meta_box in class-admin-controller.php

File:
1 edited

Legend:

Unmodified
Added
Removed
  • min-calendar/trunk/admin/class-admin-controller.php

    r1218625 r1220506  
    194194        );
    195195    }
    196 
    197     /**
    198      * 投稿フォームにカスタムフィールド挿入
    199      *
    200      * @param MC_POST_Wrapper $post_wrapper
    201      * @param string $html カスタムフィールドのマークアップ
    202      */
    203     private function add_meta_boxes()
    204     {
    205         add_meta_box(
    206             'mincalendar_meta_box_id',
    207             __( 'Min Calendar Meta Box', 'mincalendar' ),
    208             array( $this, 'set_field' ), // カスタムフィールド追加
    209             'mincalendar',
    210             'normal'
    211         );
    212     }
    213 
    214     /**
    215      * add_meta_boxのコールバック関数
    216      *
    217      * @param array $param do_meta_boxに指定した引数
    218      */
    219     public function set_field( $params )
    220     {
    221         MC_Custom_Field::set_field( $params[0], $params[1] );
    222     }
    223196}
Note: See TracChangeset for help on using the changeset viewer.