• 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 / maybe_add_jilt_notice_to_abandoned_payment() – Maybe adds a notice to abandoned payments if Jilt isn’t installed.

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
  }
}
 

 View on GitHub View on Trac

Published: 8th April 2020 | Last updated: 12th September 2021

Primary Sidebar

Information

Function name: maybe_add_jilt_notice_to_abandoned_payment
Plugin ref: Easy Digital Downloads
Version: 2.11.6
Sourcefile: includes/deprecated-functions.php
File ref: includes/deprecated-functions.php
Deprecated?: No
API Letters: A,J,M,N,T

Footer

Easy Digital Downloads a2z
Easy Digital Downloads a2z
Easy Digital Downloads a2z
WordPress 5.9.3
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-2022. All rights reserved.


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

  • Home
  • Blog
  • Sitemap
  • Sites