Ajit N

WP Add custom column to Users List admin panel

Use below code to allow your users to add phone numbers. Paste this full code in functions.php file. This will add new field on user profile for “Phone Number” and add a column user table on WordPress admin for phone. [crayon-59977bd54abda666548856/]  Read more …
Ajit N

Counts all the values of an array

array_count_values() returns an array using the values of array as keys and their frequency in array as values. [crayon-59977bd54b0b4453631077/] For counting the values with case-insensitive matching [crayon-59977bd54b0b9945442371/] This prints: [crayon-59977bd54b0bd611779137/]  Read more …
Ajit N

Display or retrieve the HTML dropdown list of categories.

The ‘hierarchical’ argument, which is disabled by default, will override the depth argument, unless it is true. When the argument is false, it will display all of the categories. When it is enabled it will use the value in the ‘depth’ argument. [crayon-59977bd54b38f797955891-i/] For get html list of category by...Read more …