wphooks.info - post_action_{$action}

post_action_{$action}

(trunk - 5.0-alpha-42993)

The hook occurs in the following file:

wp-admin/post.php:
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
	default:
		/**
		 * Fires for a given custom post action request.
		 *
		 * The dynamic portion of the hook name, `$action`, refers to the custom post action.
		 *
		 * @since 4.6.0
		 *
		 * @param int $post_id Post ID sent with the request.
		 */
		do_action( "post_action_{$action}", $post_id );

		wp_redirect( admin_url( 'edit.php' ) );
		exit();
} // end switch
include( ABSPATH . 'wp-admin/admin-footer.php' );