Code Snippets

Page 3 of 8
<< Previous   1 | 2 | 3 | 4 | 5   Next >>
Code Snippets

Get current user id in WordPress

How to get the current user id and other user information using WordPress.

Code Snippets

PHP replace underscores with spaces

How to replace underscores with spaces using PHP.

Code Snippets

Get date format admin setting in WordPress

How to get the wordpress date format as defined in the admin settings for formatting timestamps.

Code Snippets

How to detect adblock using javascript

How to detect adblock and show a message to your visitors using jQuery.

Code Snippets

Return last insert id with PHP PDO

How to return the last insert id with PHP's PDO.

Code Snippets

Code to backup a wordpress database

This code snippet shows you how to create a complete MySQL export file of your WordPress database.

Code Snippets

How to turn on error reporting in PHP

How to switch on PHP error reporting directly in the code, and a quick overview of how error reporting works and the options available.

Code Snippets

Create a hamburger icon with CSS

How to create the classic three line hamburger navicon navigation menu for mobile and smaller devices using only CSS, and the argument for using CSS over images.

Code Snippets

Add an admin WordPress page not shown in the menu

This snippet shows you how to add custom admin pages to WordPress without adding them to the menu.

Code Snippets

How to implode array keys in PHP

Code snippet for imploding array keys in PHP.

Page 3 of 8
<< Previous   1 | 2 | 3 | 4 | 5   Next >>
Sign Up

Popular Tags

350x250

Need a web developer?

If you'd like to work with code synthesis on your next project get in touch via the contact page.