| Server IP : 68.178.247.200 / Your IP : 216.73.216.14 Web Server : Apache System : Linux p3plzcpnl489463.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64 User : x9dppmxs4rgd ( 8559391) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/x9dppmxs4rgd/www/wp-content/plugins/simple-sitemap/api/classes/ |
Upload File : |
<?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;
/* 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');
}
}
?>