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)


1

Updating the url via javascript, is not related to WordPress, however you just need to modify window.location.hash in your jQuery code. Regarding the usage of admin-ajax.php it is recommended way to do tasks via AJAX that need to load WordPress environment, instead of manually requiring wp-load.php. In your case you are sending a request to a regular ...



Top 50 recent answers are included