PluginProbe
Yatra – Travel Booking & Tour Operator Software / 2.2.13
Yatra – Travel Booking & Tour Operator Software v2.2.13
3.0.14 3.0.14.1 3.0.14.2 3.0.12 3.0.13 3.0.11 3.0.10 3.0.9 3.0.8 3.0.7 3.0.6 3.0.5 3.0.5.1 3.0.4 3.0.3 3.0.2.9 3.0.2.7 3.0.2.8 3.0.2.6 trunk 1.0.0 2.0.0 2.0.1 2.0.10 2.0.11 All 82 releases
yatra / core / Compatibility / Astra.php

Astra.php in Yatra – Travel Booking & Tour Operator Software 2.2.13, at core/Compatibility/Astra.php

31 lines 602 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Yatra\Core\Compatibility;
4
5 use Yatra\Core\Constant;
6
7 class Astra
8 {
9 /**
10 * Init WordPress hook
11 *
12 * @since 2.2.1
13 */
14 public static function init()
15 {
16 $self = new self;
17 add_action('do_meta_boxes', array($self, 'remove_metabox'), 1, 3);
18
19 }
20
21 public function remove_metabox($post_type, $context, $post)
22 {
23 if ($post_type !== Constant::TOUR_POST_TYPE) {
24 return;
25 }
26 remove_meta_box('astra_settings_meta_box', $post_type, $context);
27 remove_meta_box('postcustom', $post_type, $context);
28
29 }
30 }
31