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 |
|---|---|
| 1935 | if ( empty( $data['ping_status'] ) ) { |
| 1936 | $data['ping_status'] = 'closed'; |
| 1937 | } |
| 1938 | |
| 1939 | // Exclude terms from taxonomies that are not supposed to appear in Quick Edit. |
| 1940 | if ( ! empty( $data['tax_input'] ) ) { |
| 1941 | foreach ( $data['tax_input'] as $taxonomy => $terms ) { |
| 1942 | $tax_object = get_taxonomy( $taxonomy ); |
| 1943 | /** This filter is documented in wp-admin/includes/class-wp-posts-list-table.php */ |
| 1944 | if ( ! apply_filters( 'quick_edit_show_taxonomy', $tax_object->show_in_quick_edit, $taxonomy, $post['post_type'] ) ) { |
| 1945 | unset( $data['tax_input'][ $taxonomy ] ); |
| 1946 | } |
| 1947 | } |
| 1948 | } |
| 1949 | |
| 1950 | // Hack: wp_unique_post_slug() doesn't work for drafts, so we will fake that our post is published. |
| 1951 | if ( ! empty( $data['post_name'] ) && in_array( $post['post_status'], array( 'draft', 'pending' ) ) ) { |
| 1952 | $post['post_status'] = 'publish'; |
| 1953 | $data['post_name'] = wp_unique_post_slug( $data['post_name'], $post['ID'], $post['post_status'], $post['post_type'], $post['post_parent'] ); |