Wordpress ping function

pharmacyboy

Registered Member
Joined
May 25, 2008
Messages
64
Reaction score
0
Hello,

I have my own content system based on WP. I'd like to know which function in WP is responsible for pings and how can i order WP to ping my post ?
 
It's setup as a cronjob via wp-cron.php

I believe the function is do_all_pings()
 
tnx, will check it out. I use wp_insert_post to add my posts to WP. Should I also do something else ?

Do i need to add wp-cron.php to my cron jobs or does WP starts this function from inside wp code ?
 
Last edited:
tnx, will check it out. I use wp_insert_post to add my posts to WP. Should I also do something else ?

I may be wrong, but I believe how it works is that when a new post is made, a status flag is set. The next time that wp-cron is hit (the next time the page loads) it runs the job and all posts with a "ping" status flag set are sent out.

In terms of how to add posts, if it's working, I'd go with it.
 
wp_insert_post will set "status flag" or i need to set it using another function ?
 
wp_insert_post will set "status flag" or i need to set it using another function ?
I'm not sure exactly. Your best bet would be to start reading here:
Code:
http://wordpress.org/search/do_all_pings?forums=1

Hope that helps!
 
Hello, can you please share it in here ? Thanks...
 
Back
Top