View Single Post
Old 04-17-2011, 11:43 AM  
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,515
Quote:
Originally Posted by Brujah View Post
going to give it a shot writing it myself
look into the the following actions, to hook your create thread function into.

Code:
function create_thread() {
// blah blah do it here
}

add_action('wp_insert_post', 'create_thread'); 
add_action('new_to_publish' , 'create_thread); 
add_action('draft_to_publish' , 'create_thread'); 
add_action('private_to_publish', 'create_thread'); 
add_action('xmlrpc_publish_post', 'create_thread'); 
add_action('publish_phone', 'create_thread'); 

add_action('publish_post', 'create_thread'); // this one would be the main one to hook into
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


My Cam Feeds Script / Free Templates / Gallery Scraper
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote