WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
This hook occurs 2 times in this file.
Line | Code |
---|---|
348 |
|
349 | pingGeoUrl($post_ID); |
350 |
|
351 | } |
352 |
|
353 |
|
354 |
|
355 | if ($post_pingback) { |
356 |
|
357 | pingback($content, $post_ID); |
358 |
|
359 | } |
360 |
|
361 | |
362 |
|
363 | do_action('publish_post', $post_ID); |
364 |
|
365 |
|
366 |
|
Line | Code |
760 |
|
761 | } |
762 |
|
763 | |
764 |
|
765 | if (isset($sleep_after_edit) && $sleep_after_edit > 0) { |
766 |
|
767 | sleep($sleep_after_edit); |
768 |
|
769 | } |
770 |
|
771 |
|
772 |
|
773 | // are we going from draft/private to published? |
774 |
|
775 | if ($prev_status != 'publish' && $post_status == 'publish') { |
776 |
|
777 | generic_ping(); |
778 |
|