/
var
/
www
/
vhosts
/
ihelp.ro
/
ajutam.ro
/
wp-content
/
plugins
/
give
/
includes
/
/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/includes
mkdir
upload
Name
Size
Mode
Actions
admin/
-
0755
rm
api/
-
0755
rm
database/
-
0755
rm
deprecated/
-
0755
rm
donors/
-
0755
rm
emails/
-
0755
rm
forms/
-
0755
rm
frontend/
-
0755
rm
gateways/
-
0755
rm
libraries/
-
0755
rm
payments/
-
0755
rm
actions.php
9723
0644
edit
dl
rm
ajax-functions.php
20842
0644
edit
dl
rm
class-give-async-process.php
1177
0644
edit
dl
rm
class-give-background-updater.php
13110
0644
edit
dl
rm
class-give-cache-setting.php
6402
0644
edit
dl
rm
class-give-cache.php
18186
0644
edit
dl
rm
class-give-cli-commands.php
33154
0644
edit
dl
rm
class-give-comment.php
17386
0644
edit
dl
rm
class-give-cron.php
5157
0644
edit
dl
rm
class-give-donate-form.php
24078
0644
edit
dl
rm
class-give-donor.php
41007
0644
edit
dl
rm
class-give-email-access.php
8503
0644
edit
dl
rm
class-give-license-handler.php
27610
0644
edit
dl
rm
class-give-logging.php
7492
0644
edit
dl
rm
class-give-readme-parser.php
1259
0644
edit
dl
rm
class-give-roles.php
10783
0644
edit
dl
rm
class-give-scripts.php
25159
0644
edit
dl
rm
class-give-session.php
15164
0644
edit
dl
rm
class-give-stats.php
12049
0644
edit
dl
rm
class-give-template-loader.php
3638
0644
edit
dl
rm
class-give-tooltips.php
4670
0644
edit
dl
rm
class-give-translation.php
8466
0644
edit
dl
rm
class-notices.php
19401
0644
edit
dl
rm
country-functions.php
77972
0644
edit
dl
rm
currencies-list.php
48937
0644
edit
dl
rm
currency-functions.php
11784
0644
edit
dl
rm
error-tracking.php
2996
0644
edit
dl
rm
filters.php
8946
0644
edit
dl
rm
formatting.php
25206
0644
edit
dl
rm
install.php
16535
0644
edit
dl
rm
login-register.php
10578
0644
edit
dl
rm
misc-functions.php
113297
0644
edit
dl
rm
plugin-compatibility.php
3247
0644
edit
dl
rm
post-types.php
18224
0644
edit
dl
rm
price-functions.php
2895
0644
edit
dl
rm
process-donation.php
47979
0644
edit
dl
rm
setting-functions.php
4461
0644
edit
dl
rm
shortcodes.php
29823
0644
edit
dl
rm
template-functions.php
13292
0644
edit
dl
rm
user-functions.php
16145
0644
edit
dl
rm
Edit:
/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/includes/class-give-cron.php
(5157B)
<?php /** * Cron * * @package Give * @subpackage Classes/Give_Cron * @copyright Copyright (c) 2016, GiveWP * @license https://opensource.org/licenses/gpl-license GNU Public License * @since 1.3.2 */ // Exit if accessed directly. if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Give_Cron Class * * This class handles scheduled events. * * @since 1.3.2 */ class Give_Cron { /** * Instance. * * @since 1.8.13 * @access private * @var */ private static $instance; /** * Singleton pattern. * * @since 1.8.13 * @access private */ private function __construct() { } /** * Get instance. * * @return static * @since 1.8.13 * @access public */ public static function get_instance() { if ( null === static::$instance ) { self::$instance = new static(); self::$instance->setup(); } return self::$instance; } /** * Setup * * @since 1.8.13 */ private function setup() { add_filter( 'cron_schedules', array( self::$instance, '__add_schedules' ) ); add_action( 'wp', array( self::$instance, '__schedule_events' ) ); } /** * Registers new cron schedules * * @param array $schedules An array of non-default cron schedules. * * @return array An array of non-default cron schedules. * @since 1.3.2 * @access public */ public function __add_schedules( $schedules = array() ) { // Adds once weekly to the existing schedules. $schedules['weekly'] = array( 'interval' => 604800, // 7 * 24 * 3600 'display' => __( 'Once Weekly', 'give' ), ); // Adds once weekly to the existing schedules. $schedules['monthly'] = array( 'interval' => 2592000, // 30 * 24 * 3600 'display' => __( 'Once Monthly', 'give' ), ); // Adds every third day to the existing schedules. $schedules['thricely'] = array( 'interval' => 259200, // 3 * 24 * 3600 'display' => __( 'Every Third Day', 'give' ), ); return $schedules; } /** * Schedules our events * * @return void * @since 1.3.2 * @access public */ public function __schedule_events() { $this->monthly_events(); $this->weekly_events(); $this->daily_events(); $this->thricely_events(); } /** * Schedule monthly events * * @return void * @since 2.5.0 * @access private */ private function monthly_events() { if ( ! wp_next_scheduled( 'give_monthly_scheduled_events' ) ) { wp_schedule_event( current_time( 'timestamp' ), 'monthly', 'give_monthly_scheduled_events' ); } } /** * Schedule weekly events * * @return void * @since 1.3.2 * @access private */ private function weekly_events() { if ( ! wp_next_scheduled( 'give_weekly_scheduled_events' ) ) { wp_schedule_event( current_time( 'timestamp' ), 'weekly', 'give_weekly_scheduled_events' ); } } /** * Schedule daily events * * @return void * @since 1.3.2 * @access private */ private function daily_events() { if ( ! wp_next_scheduled( 'give_daily_scheduled_events' ) ) { wp_schedule_event( current_time( 'timestamp' ), 'daily', 'give_daily_scheduled_events' ); } } /** * Schedule thricely events * * @return void * @since 2.5.11 * @access private */ private function thricely_events() { if ( ! wp_next_scheduled( 'give_thricely_scheduled_events' ) ) { wp_schedule_event( current_time( 'timestamp' ), 'thricely', 'give_thricely_scheduled_events' ); } } /** * get cron job action name * * @param string $type * * @return string * @since 1.8.13 * @access public */ public static function get_cron_action( $type = 'weekly' ) { $cron_action = ''; switch ( $type ) { case 'daily': $cron_action = 'give_daily_scheduled_events'; break; case 'thricely': $cron_action = 'give_thricely_scheduled_events'; break; case 'monthly': $cron_action = 'give_monthly_scheduled_events'; break; case 'weekly': $cron_action = 'give_weekly_scheduled_events'; break; } return $cron_action; } /** * Add action to cron action * * @param string $callback * @param string $type * * @since 1.8.13 * @access private */ private static function add_event( $callback, $type = 'weekly' ) { $cron_event = self::get_cron_action( $type ); add_action( $cron_event, $callback ); } /** * Add weekly event * * @param string $callback * * @since 1.8.13 * @access public */ public static function add_weekly_event( $callback ) { self::add_event( $callback ); } /** * Add daily event * * @param $callback * * @since 1.8.13 * @access public */ public static function add_daily_event( $callback ) { self::add_event( $callback, 'daily' ); } /** * Add thricely event * * @param $callback * * @since 2.5.11 * @access public */ public static function add_thricely_event( $callback ) { self::add_event( $callback, 'thricely' ); } /** * Add monthly event * * @param $callback * * @since 2.5.0 * @access public */ public static function add_monthly_event( $callback ) { self::add_event( $callback, 'monthly' ); } } // Initiate class. Give_Cron::get_instance();
Save
cmd:
run