function tml_redirect_url( $url, $action ) {
if ( 'register' == $action )
$url = 'АДРЕС';
return $url;
}
add_filter( 'tml_redirect_url', 'tml_redirect_url', 10, 2 );
$('.variations_form.cart').before( $('.description-table, .price').clone() )
var form = document.getElementsByClassName('variations_form')[0],
form_container = form.parentElement,
table_copy = form.getElementsByClassName('description-table')[0].cloneNode(true),
span_copy = form.getElementsByClassName('price')[0].cloneNode(true);
form_container.insertBefore(table_copy, form);
form_container.insertBefore(span_copy, form);
get_currentuserinfo()
получает только данные из таблицы wp_users.global $current_user;
get_currentuserinfo();
$gender = get_user_meta( $user_ID, 'gender', true );
var_dump( $gender );
// Либо можно получить все метаданные юзера массивом, и работать уже с ними:
$meta = get_user_meta( $user_ID );
var_dump( $meta );
global $current_user;
echo 'Username: ' . $current_user->user_login . '<br />';
echo 'User email: ' . $current_user->user_email . '<br />';
echo 'User first name: ' . $current_user->user_firstname . '<br />';
echo 'User last name: ' . $current_user->user_lastname . '<br />';
echo 'User display name: ' . $current_user->display_name . '<br />';
echo 'User ID: ' . $current_user->ID;