Skip to content

Instantly share code, notes, and snippets.

@ayoubkhan58
ayoubkhan58 / Method 1.php
Last active February 24, 2022 07:03
Ultimate Member - adding custom fields in account page and tab, add one of the code to functions.php
/**
EXTRA ULTIMATE MEMBER
*/
add_action('um_after_account_general', 'showExtraFields', 100);
function showExtraFields()
{
//these are the meta fields created in registration field
$custom_fields = [
"c_user_contry" => "Country",