This is test banner content
Skip to content
Home » Second post sending

Second post sending

In this article, we’re going to take a simple example of handling a POST request from a user, which is submitted via a contact form. We are going to use an internal WordPress hook to properly get the data, process it accordingly and redirect the user back to a specific page.

This article assumes you have a basic knowledge of the WordPress Plugin API. If you’re not familiar, it’s highly recommended to review the Codex page first.

In this case, the first item receives an index of 0. The second item receives an index of 1, and so on, up to the first item that received an explicit index. Start from there, the items after that will receive incrementing numbers as index. So in this case, “Vienna” has an index 0, “Dunn Loring” has an index of 1, “West Falls Church” has an index of 2, “Virgina Sq-GMU” had received an explicit index of 5, “Clarendon” receives a subsequent index of 6, and “Court House” has an index of 7. You can also also assign indexes to different items inside the array. Here are examples: