', '' );
}
function kad_get_wc_version() {
return defined( 'WC_VERSION' ) && WC_VERSION ? WC_VERSION : null;
}
function kad_is_wc_version_gte_2_6() {
return kad_get_wc_version() && version_compare(kad_get_wc_version(), '2.6', '>=' );
}
add_action('woocommerce_before_account_navigation', 'kad_woo_account_before_div', 5);
function kad_woo_account_before_div() {
echo '
';
}
add_action('woocommerce_after_account_navigation', 'kad_woo_account_after_div', 5);
function kad_woo_account_after_div() {
echo '
';
}
add_action('woocommerce_before_account_navigation', 'kad_woo_account_avatar', 20);
function kad_woo_account_avatar(){
$current_user = wp_get_current_user();
if ( 0 == $current_user->ID ) {
} else { ?>
ID, 120 ); ?>
display_name; ?>