updated plugin Easy Digital Downloads version 3.1.1.4.2

This commit is contained in:
2023-06-05 11:21:17 +00:00
committed by Gitium
parent e5482aabb7
commit b7bbe6d733
105 changed files with 3161 additions and 1326 deletions

View File

@ -399,3 +399,43 @@ function edd_tax_settings_display_tax_disabled_notice() {
}
add_action( 'edd_settings_tab_top_taxes_rates', 'edd_tax_settings_display_tax_disabled_notice', 10 );
/**
* Display help text at the top of the Licenses tab.
*
* @since 3.1.1.4
* @return void
*/
function edd_license_settings_help_text() {
?>
<div class="edd-licenses__description">
<p>
<?php esc_html_e( 'Manage extensions for Easy Digital Downloads which are not included with a pass. Having an active license for your extensions gives you access to updates when they\'re available.', 'easy-digital-downloads' ); ?>
</p>
<?php
$pass_manager = new \EDD\Admin\Pass_Manager();
if ( ! $pass_manager->highest_license_key ) :
?>
<p>
<?php
$url = edd_get_admin_url(
array(
'page' => 'edd-settings',
'tab' => 'general',
)
);
printf(
wp_kses_post(
/* translators: 1. opening anchor tag; 2. closing anchor tag */
__( 'Have a pass? You\'re ready to set up EDD (Pro). %1$sActivate Your Pass%2$s' )
),
'<a href="' . esc_url( $url ) . '" class="button button-primary">',
'</a>'
);
?>
</p>
<?php endif; ?>
</div>
<?php
}
add_action( 'edd_settings_tab_top_licenses_main', 'edd_license_settings_help_text' );