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.
Line | Code |
---|---|
133 | ping_status = '$ping_status', |
134 | comment_status = '$comment_status' |
135 | WHERE ID = $ID"; |
136 | |
137 | $result = $wpdb->query($sql); |
138 | $rows_affected = $wpdb->rows_affected; |
139 |
|
140 | wp_set_post_cats('', $ID, $post_category); |
141 |
|
142 | do_action('edit_post', $ID); |
143 |
|
144 | return $rows_affected; |
145 | } |
146 |
|
147 | function wp_get_post_cats($blogid = '1', $post_ID = 0) { |
148 | global $wpdb; |
149 | |
150 | $sql = "SELECT category_id |
151 | FROM $wpdb->post2cat |