/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/includes
NameSizeModeActions
admin/-0755rm
api/-0755rm
database/-0755rm
deprecated/-0755rm
donors/-0755rm
emails/-0755rm
forms/-0755rm
frontend/-0755rm
gateways/-0755rm
libraries/-0755rm
payments/-0755rm
actions.php97230644editdlrm
ajax-functions.php208420644editdlrm
class-give-async-process.php11770644editdlrm
class-give-background-updater.php131100644editdlrm
class-give-cache-setting.php64020644editdlrm
class-give-cache.php181860644editdlrm
class-give-cli-commands.php331540644editdlrm
class-give-comment.php173860644editdlrm
class-give-cron.php51570644editdlrm
class-give-donate-form.php240780644editdlrm
class-give-donor.php410070644editdlrm
class-give-email-access.php85030644editdlrm
class-give-license-handler.php276100644editdlrm
class-give-logging.php74920644editdlrm
class-give-readme-parser.php12590644editdlrm
class-give-roles.php107830644editdlrm
class-give-scripts.php251590644editdlrm
class-give-session.php151640644editdlrm
class-give-stats.php120490644editdlrm
class-give-template-loader.php36380644editdlrm
class-give-tooltips.php46700644editdlrm
class-give-translation.php84660644editdlrm
class-notices.php194010644editdlrm
country-functions.php779720644editdlrm
currencies-list.php489370644editdlrm
currency-functions.php117840644editdlrm
error-tracking.php29960644editdlrm
filters.php89460644editdlrm
formatting.php252060644editdlrm
install.php165350644editdlrm
login-register.php105780644editdlrm
misc-functions.php1132970644editdlrm
plugin-compatibility.php32470644editdlrm
post-types.php182240644editdlrm
price-functions.php28950644editdlrm
process-donation.php479790644editdlrm
setting-functions.php44610644editdlrm
shortcodes.php298230644editdlrm
template-functions.php132920644editdlrm
user-functions.php161450644editdlrm
Edit: /var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/includes/class-give-cron.php (5157B)
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();