best way to customize core functions like wp_update_post
-
I want to add some custom functionality to wp_update_post() to send an email each time a post is updated. Updating the core file (wp-includes/post.php) is obviously not a good idea since each time I upgrade WP my customizations would get overwritten. So, what’s the best way to go about this? Can I copy the function from the core file into my theme’s functions.php file to do the override? If so, is there a special naming convention to get it to work (there is something similar in Drupal).
Thanks in advance!
Julie
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘best way to customize core functions like wp_update_post’ is closed to new replies.