I want to load some form elements for a custom post type's edit screen via AJAX.
What's the best practice to implement this?
Should I use this algorithm?
Hook an action to
detect the request from AJAX client (via
clean the buffer (via
output the requested element, and exit.
wp-admin/post-new.phpfrom AJAX client