Admin plugin, how can I output a different content-type?
I’ve done this two ways: 1) – a csv export function – detect that special content type handling is required BEFORE wp outputs anything. add_action (‘plugins_loaded’, ‘amr_meta_handle_csv’); function amr_meta_handle_csv ($csv, $suffix=’csv’) { // chcek if there is a csv request on this page BEFORE we do anything else ? if (( isset ($_POST[‘csv’]) )) { … Read more