HEX
Server: Apache
System: Linux 162-240-236-42.bluehost.com 3.10.0-1160.114.2.el7.x86_64 #1 SMP Wed Mar 20 15:54:52 UTC 2024 x86_64
User: bt667 (1004)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /home/bt667/www/wp-content/plugins/schema/includes/integrations/thesis.php
<?php
/**
 * Thesis Theme 2.x integration
 *
 *
 * plugin url: https://diythemes.com/
 * @since 1.4
 */
 
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) exit;


/**
 * Remove Thesis post meta from Schema post type
 *
 * @since 1.3
 * @return schema json-ld final output
 */
if (is_admin()) :
function my_remove_meta_boxes() {
	
	// Check if Thesis theme is active,
		// Popup comments do not work with Thesis theme
	$my_theme = wp_get_theme();
	if ( $my_theme->get( 'Name' ) == 'Thesis') {
		
		remove_meta_box('thesis_title_tag', 'schema', 'normal');
		remove_meta_box('thesis_meta_description', 'schema', 'normal');
		remove_meta_box('thesis_meta_keywords', 'schema', 'normal');
		remove_meta_box('thesis_meta_robots', 'schema', 'normal');
		remove_meta_box('thesis_canonical_link', 'schema', 'normal');
		remove_meta_box('thesis_html_body', 'schema', 'normal');
		remove_meta_box('thesis_post_content', 'schema', 'normal');
		remove_meta_box('thesis_post_image', 'schema', 'normal');
		remove_meta_box('thesis_post_thumbnail', 'schema', 'normal');
		remove_meta_box('thesis_redirect', 'schema', 'normal');
	}
}
add_action( 'do_meta_boxes', 'my_remove_meta_boxes', 99 );
endif;