WordPress at a glance
action is not described

wp_trash_post action-hook . WP 3.3.0

Fires before a post is sent to the Trash.

Usage

add_action( 'wp_trash_post', 'action_function_name_1417' );
function action_function_name_1417( $post_id ){
	// action...
}
$post_id(int)
Post ID.

Список изменений

С версии 3.3.0 Введена.

Где вызывается хук

wp_trash_post()
wp_trash_post
WP_Customize_Manager::trash_changeset_post()
wp_trash_post
wp-includes/post.php 3201
do_action( 'wp_trash_post', $post_id );
wp-includes/class-wp-customize-manager.php 3078
do_action( 'wp_trash_post', $post_id );

Где используется хук в ядре WP

wp-includes/default-filters.php 489
add_action( 'wp_trash_post', '_reset_front_page_settings_for_post' );