updated plugin Easy Digital Downloads
version 3.1.1.2
This commit is contained in:
@ -102,43 +102,6 @@ function edd_add_options_link() {
|
||||
}
|
||||
add_action( 'admin_menu', 'edd_add_options_link', 10 );
|
||||
|
||||
/**
|
||||
* Create the Extensions submenu page under the "Downloads" menu
|
||||
*
|
||||
* @since 3.0
|
||||
*
|
||||
* @global $edd_add_ons_page
|
||||
*/
|
||||
function edd_add_extentions_link() {
|
||||
if ( ! current_user_can( 'manage_shop_settings' ) ) {
|
||||
return;
|
||||
}
|
||||
global $submenu, $edd_add_ons_page;
|
||||
|
||||
$edd_add_ons_page = add_submenu_page( 'edit.php?post_type=download', __( 'EDD Extensions', 'easy-digital-downloads' ), __( 'Extensions', 'easy-digital-downloads' ), 'manage_shop_settings', 'edd-addons', 'edd_add_ons_page' );
|
||||
$pass_manager = new \EDD\Admin\Pass_Manager();
|
||||
if ( ! $pass_manager->has_pass() ) {
|
||||
$submenu[ 'edit.php?post_type=download' ][] = array(
|
||||
'<span class="edd-menu-highlight">' . esc_html__( 'Upgrade to Pro', 'easy-digital-downloads' ) . '</span>',
|
||||
'manage_shop_settings',
|
||||
edd_link_helper(
|
||||
'https://easydigitaldownloads.com/lite-upgrade',
|
||||
array(
|
||||
'utm_medium' => 'admin-menu',
|
||||
'utm_content' => 'upgrade-to-pro',
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
add_action( 'admin_print_styles', function() {
|
||||
?>
|
||||
<style>#menu-posts-download li:last-child {background-color: #1da867;}#menu-posts-download li:last-child a,#menu-posts-download li:last-child a:hover{color: #FFFFFF !important;font-weight: 600;}</style>
|
||||
<?php
|
||||
} );
|
||||
}
|
||||
}
|
||||
add_action( 'admin_menu', 'edd_add_extentions_link', 99999 );
|
||||
|
||||
/**
|
||||
* Whether the current admin area page is one that allows the insertion of a
|
||||
* button to make inserting Downloads easier.
|
||||
|
Reference in New Issue
Block a user