wphooks.info - post_action_{$action}

post_action_{$action}

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-admin/post.php:
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
	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' );