HEX
Server: Apache
System: Linux 244.240.109.208.host.secureserver.net 5.14.0-611.11.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Dec 3 09:47:37 EST 2025 x86_64
User: icsla (1002)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/icsla/public_html/wp-content/plugins/simple-sitemap/api/classes/compatibility.php
<?php

namespace WPGO_Plugins\Plugin_Framework;

/*
*	Class will address issues appearing because of other plugins and themes, 
* and help our plugin to become compatible with them.
*/

class Compatibility_FW {

  protected $module_roots;
  private $custom_plugin_data;

  /* Class constructor. */

  public function __construct($module_roots, $plugin_data, $custom_plugin_data, $utility) {
    $this->module_roots = $module_roots;
    $this->custom_plugin_data = $custom_plugin_data;
    //to remove the meta box for a specific CPT when GP theme is installed
    add_action( 'add_meta_boxes', array( &$this, 'remove_layout_meta_box'), 999 );
  }

  //remove the generatepress theme metabox
  public function remove_layout_meta_box() {
    remove_meta_box('generate_layout_options_meta_box', $this->custom_plugin_data->cpt_slug, 'side');
  }

}
?>