Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action('save_post', 'save_details');
- function save_details(){
- global $post;
- if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) {
- return $post_id;
- } else {
- // Custom Page
- update_post_meta($post->ID, "featured_title", $_POST["featured_title"]);
- update_post_meta($post->ID, "featured_img", $_POST["featured_img"]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement