Useful WordPress Functions

WordPress “Cron Jobs”

Schedules a hook which will be executed by the WordPress actions core on a specific interval, specified by you. The action will trigger when someone visits your WordPress site, if the scheduled time has passed.

So if you want to execute some code on a regular base, like checking an RSS Feed, doing a database backup or reseting database values this function will do it for you. Unfortunatley its not as easy to use as transient but here is a short article on how it is done:
http://themocracy.com/2010/02/wp-cron-automating-scheduling/
http://codex.wordpress.org/Function_Reference/wp_schedule_event

Easily Fetch an RSS Feed with WordPress

fetch_feed is another simple wordpress method to get feed content. It also has the added benefit that it uses the SimplePie and FeedCache functionality for retrieval and parsing and automatic caching.

http://codex.wordpress.org/Function_Reference/fetch_feed

WordPress mail function

An incredible useful and exceptional easy to use function that also allows you to send headers and attachments, allows plain text sending and html messages and quite a few other options!

http://codex.wordpress.org/Function_Reference/wp_mail

WordPress Shortcode API

add_shortcode() is an easy way to create macros for your post content. for example lets say you want to wrap some content inside the post area within a div with some additional classes and ids that allows you to create multiple columns. you could of course just switch to the html editor and enter

Easier and more convenient especially if you are dealing with customers who dont know html would be a shortcode solution within your functions.php file:

You could then use this shortcode in your post content:

If you would like to nest shortcodes within each other you would need to make sure to add the do_shortcode method to your function like this:

http://codex.wordpress.org/Shortcode_API

Create WordPress post with a php function:

This function inserts posts pages and custom post types in the database. It sanitizes variables, does some checks, fills in missing variables like date/time, etc. very handy when you need to create and insert posts by user input. This function fits perfectly if you have a front end form for example and users can suggest posts.

http://codex.wordpress.org/Function_Reference/wp_insert_post

[Total: 1    Average: 5/5]

Free Business Hosting, IP Transit & RAM Sale

Servers Australia are offering free web hosting for life, to all Australian businesses. Go to their Facebook Free Web Hosting Page, ‘Like us’ then signup to receive your free web hosting. Please note this is available for businesses only and a limit of one per customer applies. Offer ends on 29/02/2012.

They are also having a $40 per Mbit on all IP Transit Services Sale. This service can be used for Dedicated Servers, Co-location or directly by interconnecting at one of their POP’s in Global Switch, Equinix SY1, Equinix SY2, Equinix SY3 or the Servers Australia DC. Available to new customers for 12 month (minimum) signups, available till 13/03/12.

They are also offering triple RAM on i3 server and E3-1225, Double RAM on E3-1245 Server. See their dedicated servers page here for a breakdown on the server details. Offer ends 29/02/12.

Details on all their current special offers are available on Servers Australia Special Offers page here.

[Total: 1    Average: 5/5]