Search Post by Post Meta in Rest API

WordPress provides the Rest API support for post, pages and custom post types which have set the show_in_rest parameter as

Read More »

Getting curl to output HTTP status code?

A more specific way to print out just the HTTP status code is something along the lines of: Command: curl

Read More »

mysqld.exe: Aria recovery failed. Please run aria_chk -r on all Aria tables and delete all aria_log.######## files

While I have started the XAMPP after a long break up to 1/2 months and I got the error ‘mysqld.exe:

Read More »

Create a simple shortcode in WordPress

Use code snippet to create a simple WordPress shortcode. I have created a sample shortcode prefix-portfolio with 2 attributes. Before use

Read More »

Debug WordPress hook sequence

Debug WordPress hook sequence How it works? Add query parameter debug in URL e.g. https://<mysite>/?debug. It’ll show the list of

Read More »

Register or Enqueue Google fonts in WordPress Theme

A valid way to register the Google fonts in the theme or plugin.

Read More »

Individual site upload limit notice

Show individual site upload limit notice on media page WordPress (Only for Multisite) Eg. Snippet

Read More »

Add post meta in post (custom post type) endpoint with Rest API

Add post meta in post (custom post type) endpoint with Rest API. Todo: #Todo: Change post-type with your post type

Read More »

Check logged in user role in WordPress

Check logged in user role. Use function  wp_get_current_user() to get the current/logged in user info. Usage: var_dump( prefix_user_has_role( ‘administrator’ )

Read More »

Get logged in user roles in WordPress

Get logged in user assigned roles. Use function  wp_get_current_user() to get the current/logged in user info. Output: #Output: print_r( prefix_get_current_user_roles()

Read More »
Bhari WordPress Theme for the bloggers.

Bhari WordPress theme for the bloggers

Created ‘Bhari‘ (भारी) WordPress theme for the bloggers, Who love to write articles, share awesome stuff etc. and which is

Read More »

How to release product versions tags on Github?

# View Tags $ git tag v0.1 v1.3 # Create a tag for product version release. $ git tag # Push

Read More »

Senitization and Escaping with Examples

In this article we are going to see how what is sanitization and escaping. What is sanitization? #What is sanitization?

Read More »

WordPress Translation Ready Reference Guide

Quick Reference: #Quick Reference: e is for echo x is for context n is for plurals # Translate Strings: ##

Read More »

Profiling with Blackfire for WordPress

Setup a Blackfire profiling tool on your local machine ( I’m installing it on Windows ). Profiling help developer to analyze their coding performance. Find

Read More »
Scroll to Top
%d bloggers like this: