Changeset 8486
- Timestamp:
- 03/21/2019 09:50:55 PM (6 years ago)
- Location:
- sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network/includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network/includes/payment-requests-dashboard.php
r6106 r8486 12 12 13 13 // Schedule the aggregate event only on the main blog in the network. 14 if ( get_current_blog_id() == $current_site->blog_id && ! wp_next_scheduled( 'wordcamp_payments_aggregate' ) ) 15 wp_schedule_event( time(), 'hourly', 'wordcamp_payments_aggregate' );16 17 add_action( 'wordcamp_payments_aggregate', array( __CLASS__, 'aggregate' ) );14 // if ( get_current_blog_id() == $current_site->blog_id && ! wp_next_scheduled( 'wordcamp_payments_aggregate' ) ) { 15 // wp_schedule_event( time(), 'hourly', 'wordcamp_payments_aggregate' ); 16 17 // add_action( 'wordcamp_payments_aggregate', array( __CLASS__, 'aggregate' ) ); 18 18 add_action( 'network_admin_menu', array( __CLASS__, 'network_admin_menu' ) ); 19 19 add_action( 'init', array( __CLASS__, 'upgrade' ) ); … … 23 23 add_action( 'delete_post', array( __CLASS__, 'delete_post' ) ); 24 24 25 if ( ! empty( $_GET['wcp-debug-network'] ) && current_user_can( 'manage_network' ) )26 add_action( 'admin_init', function() { do_action( 'wordcamp_payments_aggregate' ); }, 99 );25 // if ( ! empty( $_GET['wcp-debug-network'] ) && current_user_can( 'manage_network' ) ) 26 // add_action( 'admin_init', function() { do_action( 'wordcamp_payments_aggregate' ); }, 99 ); 27 27 } 28 28 -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network/includes/sponsor-invoices-dashboard.php
r8329 r8486 13 13 14 14 } elseif ( defined( 'DOING_CRON' ) ) { 15 add_action( 'wcbdsi_check_for_paid_invoices', __NAMESPACE__ . '\check_for_paid_invoices' );15 // add_action( 'wcbdsi_check_for_paid_invoices', __NAMESPACE__ . '\check_for_paid_invoices' ); 16 16 add_action( 'save_post', __NAMESPACE__ . '\update_index_row', 10, 2 ); 17 add_action( 'plugins_loaded', __NAMESPACE__ . '\schedule_sent_invoice_reminder' );17 // add_action( 'plugins_loaded', __NAMESPACE__ . '\schedule_sent_invoice_reminder' ); 18 18 19 19 } elseif ( is_network_admin() ) { 20 add_action( 'plugins_loaded', __NAMESPACE__ . '\schedule_cron_events' );20 // add_action( 'plugins_loaded', __NAMESPACE__ . '\schedule_cron_events' ); 21 21 add_action( 'network_admin_menu', __NAMESPACE__ . '\register_submenu_page' ); 22 22 add_action( 'init', __NAMESPACE__ . '\upgrade_database' ); … … 37 37 } 38 38 39 wp_schedule_event( current_time( 'timestamp' ), 'hourly', 'wcbdsi_check_for_paid_invoices' );39 // wp_schedule_event( current_time( 'timestamp' ), 'hourly', 'wcbdsi_check_for_paid_invoices' ); 40 40 } 41 41 -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network/includes/wordcamp-budgets-dashboard.php
r8330 r8486 28 28 add_action( 'admin_init', __NAMESPACE__ . '\process_import_request', 11 ); 29 29 30 add_action( REDACT_PAID_REQUESTS_CRON_ID, __NAMESPACE__ . '\redact_paid_requests' );30 //add_action( REDACT_PAID_REQUESTS_CRON_ID, __NAMESPACE__ . '\redact_paid_requests' ); 31 31 32 32 if ( ! wp_next_scheduled( REDACT_PAID_REQUESTS_CRON_ID ) ) { 33 wp_schedule_event( time(), 'twicedaily', REDACT_PAID_REQUESTS_CRON_ID );33 // wp_schedule_event( time(), 'twicedaily', REDACT_PAID_REQUESTS_CRON_ID ); 34 34 } 35 35
Note: See TracChangeset
for help on using the changeset viewer.