Tag: str_replace
-
Display an icon with email link in the User List
I chose the basic email icon that is in the WP dashicons, but there are a couple of dashicon alternatives. And certainly, you could modify this code snippet to use any type of image/icon, such as font awesome. I used the WP dashicons because they are already loaded. Adding the icon itself (without the link)…
-
Generate Random Display Name Part 2
This tutorial is an extension of the tutorial Generate Random User Display Name and Nickname that describes a process to generate random display names for users. In this tutorial we will explore how to add a process to the User Profile page that would allow users to select a new randomly generated display name from…
-
Creating an optgroup tag in a dropdown list
Here is a slightly more advanced example of using the wpmem_register_form_rows filter to modify a form input element. In this case, we will take a regular dropdown select field and add the optgroup label tag to sections of it. Note: for best results in understanding this customization, it is best to create a test field…