WordPress Codesnippets

The Easiest Way To Find WordPress Code Solutions

Latest snippets

get blocks

This wordpress code gets all the blocks from the database and then prints out the ID and post title for

Read more

get categories

This code gets all the categories from a WordPress site and then loops through each one, printing the category name.

Read more

get current user

current_user->ID . “n”; The wordpress code above displays the username, email, first and last name, display name, and user ID

Read more

get date

The code sets the default time zone to America/Los_Angeles and then outputs the current time in that time zone.

Read more