Ticket #31813: 31813.diff
File 31813.diff, 1.8 KB (added by , 9 years ago) |
---|
-
src/wp-includes/post-functions.php
2335 2335 } 2336 2336 2337 2337 /** 2338 * Fires before a post of a particular post type is deleted, at the start 2339 * of wp_delete_post(). 2340 * 2341 * The dynamic portion of the hook name, `$post->post_type`, refers to 2342 * the post type slug. 2343 * 2344 * @since 4.4.0 2345 * 2346 * @see wp_delete_post() 2347 * 2348 * @param int $postid Post ID. 2349 * @param string $post_type Post type. 2350 */ 2351 do_action( "before_delete_post_{$post->post_type}", $postid, $post->post_type ); 2352 2353 /** 2338 2354 * Fires before a post is deleted, at the start of wp_delete_post(). 2339 2355 * 2340 2356 * @since 3.2.0 … … 2379 2395 delete_metadata_by_mid( 'post', $mid ); 2380 2396 2381 2397 /** 2398 * Fires immediately before a post of a particular post type is deleted 2399 * from the database. 2400 * 2401 * The dynamic portion of the hook name, `$post->post_type`, refers to 2402 * the post type slug. 2403 * 2404 * @since 4.4.0 2405 * 2406 * @param int $postid Post ID. 2407 * @param string $post_type Post type. 2408 */ 2409 do_action( "delete_post_{$post->post_type}", $postid, $post->post_type ); 2410 2411 /** 2382 2412 * Fires immediately before a post is deleted from the database. 2383 2413 * 2384 2414 * @since 1.2.0 … … 2392 2422 } 2393 2423 2394 2424 /** 2425 * Fires immediately after a post of a particular post type is deleted 2426 * from the database. 2427 * 2428 * The dynamic portion of the hook name, `$post->post_type`, refers to 2429 * the post type slug. 2430 * 2431 * @since 4.4.0 2432 * 2433 * @param int $postid Post ID. 2434 * @param string $post_type Post type. 2435 */ 2436 do_action( "deleted_post_{$post->post_type}", $postid, $post->post_type ); 2437 2438 /** 2395 2439 * Fires immediately after a post is deleted from the database. 2396 2440 * 2397 2441 * @since 2.2.0