PATH:
home
/
letacommog
/
laindinois
/
OLD
/
wp-content
/
plugins
/
wpematico
/
app
<?php // don't load directly if ( !defined('ABSPATH') ) { header( 'Status: 403 Forbidden' ); header( 'HTTP/1.1 403 Forbidden' ); exit(); } /** * Add cron interval * This function adds the wpematico schedule to the WP Cron Schedules. * @param array $schedules * @return array */ function wpematico_intervals($schedules) { $schedule = apply_filters('wpematico_cron_schedule_values', array( 'interval' => apply_filters('wpematico_cron_schedule_interval', '300'), 'display' => __('WPeMatico') ) ); $schedules['wpematico_int'] = $schedule; return $schedules; } function wpem_cron_callback() { $args = array( 'post_type' => 'wpematico', 'orderby' => 'ID', 'order' => 'ASC', 'post_status' => 'publish', 'numberposts' => -1 ); $campaigns = get_posts( $args ); foreach( $campaigns as $post ) { $campaign = WPeMatico :: get_campaign( $post->ID ); $activated = $campaign['activated']; $cronnextrun = $campaign['cronnextrun']; if ( !$activated ) continue; if ( $cronnextrun <= current_time('timestamp') ) { WPeMatico :: wpematico_dojob( $post->ID ); } } }
[+]
..
[-] notification_traslate.php
[edit]
[-] plugin_functions.php
[edit]
[+]
js
[-] addons_page.php
[edit]
[-] campaign_preview_item.php
[edit]
[-] campaign_edit_functions.php
[edit]
[-] campaigns_list_help.php
[edit]
[-] settings_help.php
[edit]
[-] campaign_log.php
[edit]
[-] campaign_edit.php
[edit]
[+]
lib
[-] settings_page.php
[edit]
[-] campaign_preview.php
[edit]
[-] wpematico_functions.php
[edit]
[-] campaigns_list.php
[edit]
[-] xml-importer.php
[edit]
[-] debug_page.php
[edit]
[-] settings_tabs.php
[edit]
[-] campaign_fetch_functions.php
[edit]
[-] campaign_help.php
[edit]
[-] compatibilities.php
[edit]
[-] cron_functions.php
[edit]
[-] campaign_fetch.php
[edit]
[+]
css
[-] smart_notifications.php
[edit]
[-] wpe-cron.php
[edit]
[-] cron.php
[edit]