Tag Info

New answers tagged

0

Thanks paul/karpstrucking for your responses! I tried with this codex example.. for sending fields to my mailbox, but this isnt running... i need little sample for testing when i publish.. i put this block on theme's functions.php.. that is ok? function my_project_updated_send_email( $post_id ) { // If this is just a revision, don't send the email. if ...


0

You should use the save_post action to perform an action when creating or updating a post http://codex.wordpress.org/Plugin_API/Action_Reference/save_post


0

There are a number of action hooks for Post Status Transitions. They each receive the $post object as an argument. You could use these to trigger a function that writes your file to disk using fopen. Edit: if you're writing CSV, PHP has a function specifically for that: fputcsv (fopen still required)


0

Firstly, your problem with the last post type and/or term overwriting all previous is because 'filter' is a 2-dimensional array. Therefore 'taxonomy' (the key in this case) can only have one value. If that seems odd, read this super helpful page on the plugin's github that helped me a lot (read this) tldr; term lists and multi-dimensional arrays are ...



Top 50 recent answers are included