Image Accordion Block

Image Accordion Block allows user to add accordion with different images. In front-end, corresponding image will be displayed when user click on different accordion.

Post Embed Templates

WordPress allows to embed post including custom post type post. Using Embed block, user can embed post of any WordPress site. Developer can override post embed templates in theme.

WP Custom Settings

Allows developers to create a custom admin menu page with settings using Settings API without registering callbacks to every settings section and field.

Published
Categorized as WordPress

Maintenance Mode in WordPress

In WordPress 3.0 wp_maintenance() function introduced to die with a maintenance message when conditions are met. You need to create a file .maintenance in the WordPress root directory. In this file, you need to add variable $upgrading and set to the time the file was created. If the file was created less than 10 minutes… Continue reading Maintenance Mode in WordPress

Published
Categorized as WordPress

How to get sample permalink

My colleague was working on an issue where we needed a permalink of the draft post. So he used get_permalink() function to get post permalink. However the get_permalink() returns URL something like https://example.com?p=6 and we needed full permalink something like https://example.com/post-slug/ The get_permalink() function returns full permalink for the published post only. He explored WordPress… Continue reading How to get sample permalink

Published
Categorized as WordPress

Visual Studio Code Editor for WordPress Development

I'm using Visual Studio Code editor for WordPress Development. Following are the list of extensions and theme I have installed. Extensions WordPress Snippets - The ultimate WordPress snippet collection for Visual Studio Code. WordPress Hooks IntelliSense - IntelliSense and autocompletion for WordPress hooks, actions, and filters. WooCommerce - Snippets & autocomplete - A collection of WooCommerce… Continue reading Visual Studio Code Editor for WordPress Development

wp_cache_flush() – Think twice before using it

wp_cache_flush() is WordPress core function which can be used to flush entire object cache. But why I said, "Think twice before using it". There is a reason why not to use this function in the plugin/theme. Many sites heavily rely on and use object cache to improve the site performance. If any plugin calls wp_cache_flush()… Continue reading wp_cache_flush() – Think twice before using it

Functions and Hooks for Comment Template

Following are the list of functions and hooks for Comment Template. get_comment_author() - Retrieve the author of the current comment. get_comment_author (filter) - Filters the returned comment author name. comment_author() - Displays the author of the current comment. comment_author (filter) - Filters the comment author's name for display. get_comment_author_email() - Retrieve the email of the author… Continue reading Functions and Hooks for Comment Template

Functions and Hooks in Comment API

Following are the list of functions and hooks of Comment API.

Hooks and Functions for Meta Box

Following are the hooks and functions which use to add custom meta boxes to one or more screens.

%d bloggers like this: