Use save_post
action hook as shown below but write custom insert/update queries to save information in a different table.
add_action('save_post', 'save_product_data');
function save_product_data($post_id) {
//verify nonce and all other code...
$title = $_POST['post_title']; //example variable
$wpdb->query(
$wpdb->prepare(
" INSERT into wp_product_instore ( post_id, meta_key, meta_value ) values ( $post_id, 'post_title', $title )" ));
//likewise you save all other variables for the post.
}
PS: This code hasn’t been test run. Please modify to your need.
Related Posts:
- How to Change Order of Posts in Admin?
- How to Arrange Posts by Size in the WordPress Dashboard?
- Redirection to taxonomy posts list after post submit.
- how to remove dash (-) post status from post title on posts listing page wordpress
- Retrieve only posts from a specific user in wp-admin/edit.php
- Possible to add a statement to a core file?
- Is it possible to change the default WP post table’s data source?
- WordPress Admin Tables in Post View
- Post/Page Preview Template
- Post slugs and images cannot have same name?
- Convert custom fields to post categories
- Hide password protected posts in admin
- Most viewed post for the last 2 days using WP_Query
- This AJAX Code Doesn’t Work – Looking for elegant solution
- How to remove bulk edit options
- Creating new page with pre-defined parent page
- Do I use custom post type or something else?
- How To Add Perfect Apostrophe And Quotation Mark In WordPress Posts?
- Send email to user that his post has been rejected
- Custom post type permalinks breaking due to 3.1 bug fix
- wp_insert_post let users post to without login…broke
- ‘Invalid post type’ error when importing from one site to another
- Export posts manually selected by end user (not logged in)
- Locked/Unlocked in title
- How to permanently delete a post meta entry?
- Loop through all product posts?
- How to add Tags Filter in wordpress admin dashboard
- How to display featured image without it appearing in post?
- allow new users to post an article before they sign up [closed]
- Make Post Editor Select Number of Columns To 1 By Default
- Find attached images for one post type
- Adding the_date inside tags around the_content
- Problem with permalink routing?
- Ajax post filters not working
- How to sort posts inside categories
- Making a custom Pagination for multi page blog post
- List authors with the last post title and order by last post date
- How to order posts by meta_value and title
- How do I do a page break?
- What do these phpMyAdmin errors mean on my WordPress databaes?
- Thumbnail Image to go in the post aswell
- Wrap every month posts in div
- Is there a query string for edit.php to show all posts that have no custom taxonomy terms?
- static landing page leading to author specific pages w/ “live” content
- Display Posts with template on a Page
- wp_posts table extremely large
- Filter Hook for post table (not columns)
- Do one have to wait after pressing “update” on a post edit page?
- Link to date_query results in WordPress
- Sidebar on single.php not showing up
- remove all custom post created
- Hide content from Post Preview
- How to get the next and previous image title from attachment or gallery?
- Pagination for posts inside a specific category
- Creating a redirect option for current page url
- How to edit a custom theme?
- WordPress posts have a different URL to the index
- How to put the author of the post in the comments?
- Blog posts pagination not working
- unable to write to the database while uploading images
- Restricting displayed posts to posts from only select authors
- query posts with selected post ids first
- How can I create a Survey Form in WordPress that users can fill in and then submit the entire survey contents as a post?
- How to Make my Homepage Display a Single Specific Post?
- Anchor links turn to p nbsp p
- Scheduled posts appear as clickable in the front end
- Counting Posts by Category
- wp_query args with relation
- 2 Domains, Same Content, Different Titles?
- Show author bio box
- Creating Ordered Query using Meta_key
- WordPress each user has each content for a page,how to do that?
- Fixing the WP Post Object for Custom Route
- Changing the Category for all posts of an Author
- How to change post template via url?
- How to remove related post from home page
- Is it possible to have dynamic post id # in add_menu_page()?
- Is there a Standard Format for Clean URLs for Archives of Custom Posts?
- Send/Publish a Post front end
- Hiding menu on mobile only when viewing posts?
- Posts don’t appear on Template Page
- How do I list categories and the common categories for posts beneath those categories?
- Post restoration
- Insert new post for each user infinite loop error
- Last three posts not being put in order by date. How to fix this?
- WordPress sub-posts and permalinks
- limit posts per page
- Assign a link of a post to that contains that post?
- wp_query posts sorting doesn’t work
- Show List of Posts With Comments Open
- When and how will php code in a user made WordPress page be executed?
- wordpress pinboard theme [closed]
- There is a page on my website that doesn’t show in the Pages section of WordPress [closed]
- Difficulty hiding a span per a body class within WordPress
- Onclick open posts displayed in slider in a popup [closed]
- Listing category and its posts one by one
- Print out one of 2 post category [closed]
- Making a private post visitable by link?
- Display content from specific category
- Batch Scanning and Deleting Empty WordPress Posts