You appear to be a bot. Output may be restricted
Description
Maybe adds a notice to abandoned payments if Jilt isn't installed.
Usage
maybe_add_jilt_notice_to_abandoned_payment( $payment_id );
Parameters
- $payment_id
- ( int ) required – The ID of the abandoned payment, for which a jilt notice is being thrown.
Returns
void
Source
File name: easy-digital-downloads/includes/deprecated-functions.php
Lines:
1 to 50 of 50
function maybe_add_jilt_notice_to_abandoned_payment( $payment_id ) { _edd_deprecated_function( __FUNCTION__, '2.10.2' ); if ( ! is_callable( 'edd_jilt' ) && ! is_plugin_active( 'recapture-for-edd/recapture.php' ) && 'abandoned' === edd_get_payment_status( $payment_id ) && ! get_user_meta( get_current_user_id(), '_edd_try_jilt_dismissed', true ) ) { ?> <div class="notice notice-warning jilt-notice"> <p> <?php echo wp_kses_post( sprintf( /* Translators: %1$s - <strong> tag, %2$s - </strong> tag, %3$s - <a> tag, %4$s - </a> tag */ __( '%1$sRecover abandoned purchases like this one.%2$s %3$sTry Jilt for free%4$s.', 'easy-digital-downloads' ), '<strong>', '</strong>', '<a href="https://easydigitaldownloads.com/downloads/jilt" target="_blank">', '</a>' ) ); ?> </p> <?php echo wp_kses_post( sprintf( /* Translators: %1$s - Opening anchor tag, %2$s - The url to dismiss the ajax notice, %3$s - Complete the opening of the anchor tag, %4$s - Open span tag, %4$s - Close span tag */ __( '%1$s %2$s %3$s %4$s Dismiss this notice. %5$s', 'easy-digital-downloads' ), '<a href="', esc_url( add_query_arg( array( 'edd_action' => 'dismiss_notices', 'edd_notice' => 'try_jilt', ) ) ), '" type="button" class="notice-dismiss">', '<span class="screen-reader-text">', '</span> </a>' ) ); ?> </div> <?php } }