/** * 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')); }
public function __construct() { parent::__construct('listingauthordiv', __('Author', APP_TD), APP_POST_TYPE, 'side', 'low'); }
/** * 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'); }
public function __construct() { parent::__construct('membership-package-details', __('Membership Pack Details', APP_TD), CP_PACKAGE_MEMBERSHIP_PTYPE, 'normal', 'high'); }
public function __construct() { parent::__construct('bank-transfer-queue', __('Bank Transfer', APP_TD), APPTHEMES_ORDER_PTYPE, 'side', 'high'); }
/** * 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); }
public function __construct() { parent::__construct('coupon-details', __('Coupon Details', 'appthemes-coupons'), APPTHEMES_COUPON_PTYPE, 'normal', 'high'); }
/** * 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'); }