Custom Post Type Creator
WCK creates meta box to wrong page (1 post)

  1. Takuro Hishikawa
    Posted 3 years ago #

    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']) );


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom Post Type Creator
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

  • RSS feed for this topic
  • Started 3 years ago by Takuro Hishikawa
  • This topic is not resolved
  • WordPress version: 3.4.2


No tags yet.