Category: WP API

STI_wp_API

WordPress HTTP API

Introduction WordPress HTTP API  allows you to either GET or POST something from or to other sites outside of your WordPress site. Making HTTP requests in PHP is not difficult, and a variety of...

STI_wp_API

WordPress Filesystem class and connect

Initialize the WordPress Filesystem class and connect to the file system: The heart of the WordPress Filesystem API is the WP_Filesystem function. It loads and initializes the appropriate transportation class, stores an obtained instance...

STI_wp_API

Filesystem API Class Reference

Filesystem API Class Reference: Class: WP_Filesystem_Base Class: WP_Filesystem_Direct Class: WP_Filesystem_FTPext Class: WP_Filesystem_ftpsocket Class: WP_Filesystem_SSH2 Function: request_filesystem_credentials() Getting Credentials: The first step in using the WP_Filesystem is requesting credentials from the user. The normal way...

STI_wp_API

FileSystem API Introduction

Introduction The Filesystem API, added in WordPress 2.6, was originally created for WordPress’ own automatic updates feature. The Filesystem API abstracts out the functionality needed for reading and writing local files to the filesystem...

STI_wp_API

WordPress Shortcode API

Shortcode API Introduced in WordPress 2.5 is the Shortcode API, a simple set of functions for creating macro codes for use in post content. For instance, the following shortcode (in the post/page content) would...

STI_wp_API

Filter Hooks

Filter hooks are used to manipulate output. An example of this would be to add a line or text (or a hyperlink, or a signature sign-off—whatever you’d like) to the end of the content...

STI_wp_API

Hook Actions

list of the action hooks available for use in plugin development in Version 2.1 and above of WordPress. widgets_init – Used to register sidebars. This is fired at ‘init’, with a priority of 1....

STI_wp_API

Action Hooks

Action hooks are designated points in the WordPress core, theme and plugin code where it is possible for outside resources (outside of the scope of where the hook is… either in the core, theme...

STI_wp_API

Plugin API

The Plugin API provides a neat interface to work with actions and filters. Hooks, Actions and Filters Hooks are provided by WordPress to allow your plugin to ‘hook into’ the rest of WordPress; that...

STI_wp_API

Setting API

The Settings API, added in WordPress 2.7, allows admin pages containing settings forms to be managed semi-automatically. It lets you define settings pages, sections within those pages and fields within the sections. There are...