public function __construct($id, $title, $args = array()) { if (isset($_GET['post'])) { $this->prompt_post = new Prompt_Post(intval($_GET['post'])); } if (isset($_POST['post_ID'])) { $this->prompt_post = new Prompt_Post(intval($_POST['post_ID'])); } parent::__construct($id, $title, $args); }
/** * Sets up the meta box with Wordpress */ function __construct() { parent::__construct('order-author', __('Order Author', APP_TD), array('post_type' => APPTHEMES_ORDER_PTYPE, 'context' => 'side')); }
public function __construct($id, $title, $post_types = 'post', $context = 'advanced', $priority = 'default') { parent::__construct($id, $title, array('post_type' => $post_types, 'context' => $context, 'priority' => $priority)); }
/** * Sets up metabox. * * @param string $id * @param string $title * @param string|array $post_types (optional) * @param string $context (optional) * @param string $priority (optional) * * @return void */ public function __construct($id, $title, $post_types = 'post', $context = 'advanced', $priority = 'default') { $this->actions[] = 'admin_print_styles'; $this->actions[] = 'add_meta_boxes'; parent::__construct($id, $title, array('post_type' => $post_types, 'context' => $context, 'priority' => $priority)); }
public function __construct($id, $title, $post_type) { parent::__construct($id, $title, array('post_type' => $post_type)); add_action('wp_ajax_appthemes-get-post-attachment', array($this, 'get_attachment')); }
public function __construct() { parent::__construct('bank-transfer-queue', __('Bank Transfer', APP_TD), array('post_type' => APPTHEMES_ORDER_PTYPE, 'context' => 'side', 'priority' => 'high')); }