<?php
/**
 * File: class-wpglobus-rank_math_seo-update-post.php
 *
 * @since   2.4.3
 *
 * @package WPGlobus\Builders\RankMathSEO.
 * Author  Alex Gor(alexgff)
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

if ( ! class_exists( 'WPGlobus_Rank_Math_SEO_Update_Post' ) ) :

	/**
	 * Class WPGlobus_rank_math_seo_Update_Post.
	 */
	class WPGlobus_Rank_Math_SEO_Update_Post extends WPGlobus_Builder_Update_Post {

		/**
		 * Constructor.
		 */
		public function __construct( $id = null ) {

			if ( is_null( $id ) ) {
				$id = WPGlobus::Config()->builder->get_id();
			}

			parent::__construct( $id );

			/**
			 * See_file wpglobus\includes\class-wpglobus.php
			 */
			remove_action( 'wp_insert_post_data', array( 'WPGlobus', 'on_save_post_data' ), 10 );
		}

	}

endif;
