Securing WordPress AJAX Forms Using Nonce

WP snippets, code & hacks

7 August 2018
Online by J&S Code

When creating a WordPress theme or plugin, AJAX is often used in order to enhance the user experience. In order to ensure security and protect your site against several types of attacks including CSRF, WordPress provides security tokens called nonces. In this article, I’ll show you how to use nonces to protect AJAX requests on a WordPress site. (more…)

Details
7 August 2018
Online by J&S Code

This tutorial is just a simple guide to understand the basic about using AJAX in WordPress. (more…)

Details
6 August 2018
Online by J&S Code

One of the most powerful features of WordPress is the WP Query. It is what determines what content is displayed on what page. And often you’ll want to modify this query to your specific needs. Some examples: (more…)

Details
6 August 2018
Online by J&S Code

Before we start, let’s have a quick recap on how arguments work in WP_Query. When you code WP_Query in your themes or plugins, you need to include four main elements: (more…)

Details
8 November 2017
Online by J&S Code

Nowadays, a lot of bloggers choose to remove HTML tag from WordPress websites. However, for beginners and newbies in this field, they may feel confused about the practice. Meanwhile, some webmasters may have realised the importance to do so but lack effective solutions. In order to help people out, our professional and experienced editors carefully explain why to remove HTML...

Details
1 October 2017
Online by J&S Code

The WordPress platform is a magnet for those who want to take matters into their own hands, who want complete control over their websites and want to be independent in running them. (more…)

Details