Support » Plugin: Custom Post Type Creator » WCK creates meta box to wrong page

  • WCK adds meta box to admin edit post page, when sign in with except administrator. It maybe a bug. my fix:

    – add_meta_box($this->args[‘metabox_id’], $this->args[‘metabox_title’], array( &$this, ‘wck_content’ ), $wck_pages_hooknames[$this->args[‘post_type’]], ‘normal’, ‘low’, array( ‘meta_name’ => $this->args[‘meta_name’], ‘meta_array’ => $this->args[‘meta_array’]) );
    + if( $wck_pages_hooknames[$this->args[‘post_type’]])
    + add_meta_box($this->args[‘metabox_id’], $this->args[‘metabox_title’], array( &$this, ‘wck_content’ ), $wck_pages_hooknames[$this->args[‘post_type’]], ‘normal’, ‘low’, array( ‘meta_name’ => $this->args[‘meta_name’], ‘meta_array’ => $this->args[‘meta_array’]) );

  • The topic ‘WCK creates meta box to wrong page’ is closed to new replies.