Lines:
1 to 20 of 20
<?php // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) exit; /* function edd_register_default_customer_views() – Register a view for the single customer view */ add_filter( 'edd_customer_views', 'edd_register_default_customer_views', 1, 1 ); /* function edd_register_default_customer_tabs() – Register a tab for the single customer view */ add_filter( 'edd_customer_tabs', 'edd_register_default_customer_tabs', 1, 1 ); /* function edd_register_delete_customer_tab() – Register the Delete icon as late as possible so it’s at the bottom */ add_filter( 'edd_customer_tabs', 'edd_register_delete_customer_tab', PHP_INT_MAX, 1 ); /* function edd_maybe_remove_adminbar_profile_link() – Remove the admin bar edit profile link when the user is not verified */ add_action( 'wp_before_admin_bar_render', 'edd_maybe_remove_adminbar_profile_link' ); /* function edd_maybe_remove_menu_profile_links() – Remove the admin menus and disable profile access for non-verified users */ add_action( 'admin_init', 'edd_maybe_remove_menu_profile_links' );