wphooks.info - post_action_{$action}

post_action_{$action}

(trunk - 5.0-alpha-42177)

The hook occurs in the following file:

wp-admin/post.php:
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
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' );