wp_insert_post to to_ping – controlling pinging for individual posts
-
If one inserts a post using the wp_insert_post() function, passing in an associative array of ‘post_title’=>…, ‘post_content’=>…, etc. how does one control pinging? For instance disabling pinging for a single post, as opposed to using the site’s ping_sites option.
I see a ‘to_ping’ variable, but I’m not sure how it works. By default it seems to be blank in the wp-includes/post.php wp_insert_post() function. I don’t know if that means no pinging is done by default, or if the ping_sites option is used instead.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘wp_insert_post to to_ping – controlling pinging for individual posts’ is closed to new replies.