WordPress: Trigger an action when a post is saved

WordPress has a great set of functions that you can use to perform actions when some event happens, for example when a post is saved. This is called hooks and actions in WP terminology

You can see an example here:

http://codex.wordpress.org/Plugin_API/Action_Reference/save_post

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s