예제 #1
0
 /**
  * Sets up metabox.
  *
  * @param string $id
  * @param string $title
  * @param string|array $post_type
  *
  * @return void
  */
 public function __construct($id, $title, $post_type)
 {
     parent::__construct($id, $title, $post_type);
     $this->post_types = is_string($post_type) ? array($post_type) : $post_type;
     add_action('wp_ajax_appthemes-get-post-attachment', array($this, 'get_attachment'));
     add_filter('media_upload_tabs', array($this, 'media_upload_tabs'));
 }
예제 #2
0
 public function __construct()
 {
     parent::__construct('listingauthordiv', __('Author', APP_TD), APP_POST_TYPE, 'side', 'low');
 }
예제 #3
0
 /**
  * Sets up the meta box with Wordpress
  * See APP_Meta_Box::__construct()
  */
 function __construct()
 {
     parent::__construct('order-log', 'Order Log', APPTHEMES_ORDER_PTYPE, 'advanced', 'default');
 }
예제 #4
0
 public function __construct()
 {
     parent::__construct('membership-package-details', __('Membership Pack Details', APP_TD), CP_PACKAGE_MEMBERSHIP_PTYPE, 'normal', 'high');
 }
예제 #5
0
파일: bt-admin.php 프로젝트: kalushta/darom
 public function __construct()
 {
     parent::__construct('bank-transfer-queue', __('Bank Transfer', APP_TD), APPTHEMES_ORDER_PTYPE, 'side', 'high');
 }
예제 #6
0
파일: metabox.php 프로젝트: kalushta/darom
 /**
  * Setups reports post metabox
  *
  * @return void
  */
 public function __construct()
 {
     parent::__construct('reports-post', __('Reports', APP_TD), appthemes_reports_get_args('post_type'), 'normal', 'default');
 }
 /**
  * Saves media data.
  *
  * @param int $post_id
  *
  * @return void
  */
 protected function save($post_id)
 {
     parent::save($post_id);
     appthemes_handle_media_upload($post_id);
 }
예제 #8
0
 public function __construct()
 {
     parent::__construct('coupon-details', __('Coupon Details', 'appthemes-coupons'), APPTHEMES_COUPON_PTYPE, 'normal', 'high');
 }
예제 #9
0
 /**
  * Sets up the meta box with WordPress
  */
 function __construct()
 {
     if (!isset($_GET['post'])) {
         return;
     }
     $order = appthemes_get_order((int) $_GET['post']);
     if (!$order || !$order->is_escrow() || $order->get_gateway() != 'paypal') {
         return;
     }
     parent::__construct('order-pp-adaptive-details', __('Details', APP_TD), APPTHEMES_ORDER_PTYPE, 'side');
 }