SANTechIdea Wordpress Blog

STI_wp_themes

Create wordpress theme custom page

In wordpress you can create custom page for your theme. Suppose you have a website with different pages and you want to apply different design to each page. WordPress custom page template allows users...

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...

Wordpress Database

The wordpress Database Class

The wpdb Class This global WordPress class is key for using queries. In fact, every function uses this class. Using query: The query function needs a string containing the custom query. The returning value...

Wordpress Database

WordPress Database

Interfacing With the Database WordPress provides a class of functions for all database manipulations. The class is called wpdb . WordPress provides a global variable, $wpdb, which is an instantiation of the class already...

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....