• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Easy Digital Downloads a2z

Easy Digital Downloads a2z

Easy Digital Downloads a2z

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / edd_schedule_after_payment_action() – Schedules the one time event via WP_Cron to fire after purchase actions.

You appear to be a bot. Output may be restricted

Description

Schedules the one time event via WP_Cron to fire after purchase actions.

Is run on the edd_complete_purchase action.

Usage

edd_schedule_after_payment_action( $payment_id );

Parameters

$payment_id
( mixed ) required –

Returns

void

Source

File name: easy-digital-downloads/includes/payments/actions.php


Lines:

1 to 11 of 11
function edd_schedule_after_payment_action( $payment_id ) {
  $use_cron = apply_filters( 'edd_use_after_payment_actions', true, $payment_id );
  if ( $use_cron ) {
    $after_payment_delay = apply_filters( 'edd_after_payment_actions_delay', 30, $payment_id );

    // Use time() instead of current_time( 'timestamp' ) to avoid scheduling the event in the past when server time
    // and WordPress timezone are different.
    wp_schedule_single_event( time() + $after_payment_delay, 'edd_after_payment_scheduled_actions', array( $payment_id, false ) );
  }
}
 

 View on GitHub View on Trac

Published: 26th November 2019 | Last updated: 8th April 2020

Primary Sidebar

Information

Function name: edd_schedule_after_payment_action
Plugin ref: Easy Digital Downloads
Version: 2.9.23
Sourcefile: includes/payments/actions.php
File ref: includes/payments/actions.php
Deprecated?: No
API Letters: A,E,P,S

Footer

Easy Digital Downloads a2z
Easy Digital Downloads a2z
Easy Digital Downloads a2z
WordPress 5.6
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  edd.wp-a2z.org
© Copyright Easy Digital Downloads a2z 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites