WordPress | count_users Function

Prem Tiwari - - WordPress Functions


The count_users() function will count the number of users who have each of the user roles in your WordPress. Below is the syntax of count_users () Function, how to use in your WordPress plugin or …

WordPress | wp_insert_post Function

Prem Tiwari - - WordPress Functions


wp_insert_post function will insert a post in your database with the minimum required piece of information. You can set the post date manually, by setting the values for ‘post_date’ and ‘post_date_gmt’ keys. You can close …

WordPress | add_theme_support Function

Prem Tiwari - - WordPress Functions


This WordPress function registers theme support for a given feature. add_theme_support must be called in your theme’s functions.php file to work. Below is the syntax of add_theme_support() Function, how to use in your WordPress plugin …

WordPress | get_the_category_by_ID() Function

Prem Tiwari - - WordPress Functions


This WordPress function will retrieve category object by category ID. All category information is available in the category object. Below is the syntax of get_the_category_by_ID() Function, how to use in your WordPress plugin or theme …

WordPress | get_category_by_slug() Function

Prem Tiwari - - WordPress Functions


This WordPress function will retrieve category object by category slug. All category information is available in the category object. WordPress | get_category_by_slug() Function. WordPress | get_category_by_slug() Function Below is the syntax of get_category_by_slug() Function, how …

WordPress | wp_insert_user() Function

Prem Tiwari - - WordPress Functions


This WordPress function creates a new user in your WordPress database with the minimum required information like username, password, and email. This is a simpler way of inserting a user into the database. Below is …