403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.18
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/inetpub/wwwroot/wst2024/wp-content/plugins/url-shortify/lite/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/inetpub/wwwroot/wst2024/wp-content/plugins/url-shortify/lite/includes/Cron.php
<?php

namespace Kaizen_Coders\Url_Shortify;

class Cron {

	public function init() {

		if ( ! wp_next_scheduled( 'regenerate_json_links_daily' ) ) {
			wp_schedule_event( time(), 'daily', 'regenerate_json_links_daily' );
		}

		add_action( 'regenerate_json_links_daily', array( $this, 'regenerate_json_links' ) );
		add_action( 'regenerate_json_links', array( $this, 'regenerate_json_links' ) );
	}

	/**
	 * Regenerate JSON links
	 *
	 * @since 1.5.1
	 */
	public function regenerate_json_links() {
		Helper::regenerate_json_links();
	}

	/**
	 * Schedule Cron for regenerate JSON links
	 *
	 * @since 1.5.1
	 */
	public static function schedule_cron_for_regenerate_json_links() {
		wp_clear_scheduled_hook( 'regenerate_json_links' );
		wp_schedule_single_event( time() + 5, 'regenerate_json_links' );
	}

}

Youez - 2016 - github.com/yon3zu
LinuXploit