WordPress Category, Tag and Taxonomy Functions

Posted by Prem Tiwari | Updated on | in WordPress Functions.


This tutorial is a collection of WordPress category, tag and taxonomy functions list. This list also includes the deprecated functions. Function with red colour is deprecated in new version of WordPress. What is WordPress Category? …

WordPress post functions

Posted by Prem Tiwari | Updated on | in WordPress Functions.


In this tutorial, I am sharing the list of WordPress post functions which you can use when customise your WordPress blog/websites. What is WordPress post? A WordPress post is what makes up the blog aspect of …

WordPress attachment functions

Posted by Prem Tiwari | Updated on | in WordPress Functions.


What is an attachment in WordPress? The term attachment is used for files uploaded to WordPress from post edit screen. Files uploaded directly to the Media Library are not particularly attached to a post or page. An attachment …

New and updated functions list in WordPress 5.3 version

Posted by Prem Tiwari | Updated on | in WordPress Functions.


Want to know what’s new functions introduced in WordPress 5.3 release? In this tutorial, I am going to share the new and updated functions list in WordPress 5.3. List of functions in WordPress 5.3: addslashes_strings_only() …

WordPress WP_Site_Health and list of Methods

Posted by Prem Tiwari | Updated on | in WordPress Core, WordPress Functions.


WordPress 5.2 has introduced a new Site Health Tool in the admin to help site owners with common configuration issues that might cause problems for their site. WP_Site_Health Class for looking up a site’s health based …

WordPress add_pages_page() Function

Posted by Prem Tiwari | Updated on | in WordPress Functions.


The WordPress add_pages_page() is a WordPress builtin function and it will add submenu page to the Pages main menu. This function takes a capability which will be used to determine whether or not a page …

WordPress get_term_children() Function

Posted by Prem Tiwari | Updated on | in WordPress Functions.


The get_term_children() is a WordPress builtin function and it will merge all term children into a single array. This recursive function will merge all of the children of $term into the same array. Only useful for taxonomies …

WordPress | add_option_whitelist() Function

Posted by Prem Tiwari | Updated on | in WordPress Functions.


The add_option_whitelist() is a WordPress builtin function to adds an array of options to the options whitelist. It will always return the array. Parameters $new_options (array) (Required) $options (string|array) (Optional) Default value: ” Syntax: The function is …

WordPress | get_the_post_thumbnail() Function

Posted by Prem Tiwari | Updated on | in WordPress Functions.


The get_the_post_thumbnail() is a WordPress builtin function to retrieve the post thumbnail. When a theme adds ‘post-thumbnail’ support, a special ‘post-thumbnail’ image size is registered, which differs from the ‘thumbnail’ image size managed via the …

How to disable Yoast SEO Schema JSON-LD completely

Posted by Prem Tiwari | Updated on | in WordPress Beginners, WordPress Functions.


In this tutorial, we are going to share how to disable Yoast SEO schema JSOM-LD completely by using the simple WordPress code. Yoast SEO 11.0 features a completely rewritten Schema.org implementation — the first one …

How to Switch Post Type in WordPress

Posted by Prem Tiwari | Updated on | in WordPress Functions, WordPress Snippets.


In this tutorial, I am going to share the how to switch post type in WordPress by using the simple code snippets inside your functions.php file. It will save your much time if you have …

WordPress | count_users Function

Posted by Prem Tiwari | Updated on | in 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

Posted by Prem Tiwari | Updated on | in 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

Posted by Prem Tiwari | Updated on | in 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

Posted by Prem Tiwari | Updated on | in 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 …