remove_unwanted_user_contact_methods

function remove_unwanted_user_contact_methods($contactmethods) { $fields_to_remove = [ ‘facebook’, ‘twitter’, ‘linkedin’, ‘dribbble’, ‘instagram’, ‘pinterest’, ‘wordpress’, ‘github’, ‘medium’, ‘youtube’, ‘vimeo’, ‘vkontakte’, ‘odnoklassniki’, ‘tiktok’, ‘mastodon’, ‘user_url’ // Also remove the website field ]; foreach ($fields_to_remove as $field) { unset($contactmethods[$field]); } return $contactmethods; } add_filter(‘user_contactmethods’,…Continue reading

custom_admin_colors_on_user_profiles

function custom_admin_colors_on_user_profiles() { $screen = get_current_screen(); if ($screen->base === ‘profile’) { add_action(‘admin_head’, function() { echo ‘ ‘; }); } } add_action(‘current_screen’, ‘custom_admin_colors_on_user_profiles’);Continue reading

Notify admin on user update 1

if (!function_exists(‘capture_user_details_before_update’)) { add_action(‘personal_options_update’, ‘capture_user_details_before_update’); add_action(‘edit_user_profile_update’, ‘capture_user_details_before_update’); function capture_user_details_before_update($user_id) { error_log(‘Capturing user details before update for user ID: ‘ . $user_id); // Capturing user details without checking if current user is admin $user_info = get_userdata($user_id); // Capture current details $details…Continue reading

show_player_name_column_content

// Populate the new column with the nickname data for each user function show_player_name_column_content($value, $column_name, $user_id) { if (‘player_name’ == $column_name) { $user_info = get_userdata($user_id); return $user_info->nickname; // Assuming the nickname field is used for the player name } return…Continue reading

hide_display_name_dropdown_css

function hide_display_name_dropdown_css() { // Target the user edit and profile pages $screen = get_current_screen(); if ( $screen->id == “profile” || $screen->id == “user-edit” ) { echo ‘ ‘; } } add_action(‘admin_head’, ‘hide_display_name_dropdown_css’);Continue reading

Slots is LIVE (copy) (copy)

!function(e,t,a,n,c,s){e.affScriptCount = e.affScriptCount == undefined ? 0 : e.affScriptCount+1;if(e.affScriptUrl === undefined){e.affScriptUrl = {};}e.affScriptUrl[e.affScriptCount] = n;s = s + “_” + e.affScriptCount;e.bcAnalyticsObject=c,e[c]=e[c]||function(){(e[c].q=e[c].q||[]).push(arguments),e[c].u=e[c].u||n};var i=t.createElement(a),o=t.getElementsByTagName(a)[0];i.async=!0,i.src=n+”analytics/banner.js”,i.id=s,!t.getElementById(s)&&o.parentNode.insertBefore(i,o)}(window,document,”script”,”https://goldrushaffiliates.co.za/global/”,”ba”,”bafTrSc”),ba(“_setUrl”,”https://goldrushaffiliates.co.za/global/”),ba(“_setAccount”,892771),ba(“_mId”,206151);Continue reading

Slots is LIVE (copy)

!function(e,t,a,n,c,s){e.affScriptCount = e.affScriptCount == undefined ? 0 : e.affScriptCount+1;if(e.affScriptUrl === undefined){e.affScriptUrl = {};}e.affScriptUrl[e.affScriptCount] = n;s = s + “_” + e.affScriptCount;e.bcAnalyticsObject=c,e[c]=e[c]||function(){(e[c].q=e[c].q||[]).push(arguments),e[c].u=e[c].u||n};var i=t.createElement(a),o=t.getElementsByTagName(a)[0];i.async=!0,i.src=n+”analytics/banner.js”,i.id=s,!t.getElementById(s)&&o.parentNode.insertBefore(i,o)}(window,document,”script”,”https://goldrushaffiliates.co.za/global/”,”ba”,”bafTrSc”),ba(“_setUrl”,”https://goldrushaffiliates.co.za/global/”),ba(“_setAccount”,892771),ba(“_mId”,206151);Continue reading