I will say, I don’t exactly understand your words “when a front-end sets a date”…
I’m assuming wp-admin setup. Go find a post expiration plugin. There seem to be more than a couple of these out there. The plugin I’ve used ws “Post Expirator” Awesome tool. You can create a start posting and stop posting date when the post is created. I used it on a site that was advertising future events. You could create a whole years worth of upcoming events, and then schedule the posts to start displaying one month before the event, and they’d expire the day after the event. Way cool.
Obviously for a form, this will only work if the form is contained within the post, perhaps short code style?
If you want the site’s users to be able to set something up an expiration date that is an entirely different conversation. I think that is do-able as a new custom plugin. Not easy, but do-able.
Related Posts:
- How to correctly submit a search form and display the result in an independent page
- Inserting Gravity Form checkbox values into Advanced Custom Fields [closed]
- Creating wordpress user registration form
- Delete post revisions on post publish
- Is the regular ajax request method safe or I should use admin-ajax.php?
- Successful or Error Message after running mysql code in functions.php
- Insert all post IDs in new database table
- How to create and work with custom data / tables (i.e., for arbitrary data)?
- PHP code inside shortcodes
- Using Multiple Submit buttons to trigger customised php functions
- WSoD being caused by this piece of code
- How to store data from multiple forms using ajax and php
- How to check if a meta value has already been assigned to any user?
- $wpdb->wp_users returning empty value for
- Multiple meta_key in one global $wpdb;
- Shortcode to embed Edit Account form not working
- Issue with fetching mysql data and displaying results via shortcode in webpage
- How to use mysql LIKE with wpdb?
- Submitting a form, using Ajax, to run a SQL Select query based on user input from the form
- form $_post action value gets truncated after it passes through two forms
- WPDB secure custom form
- Adding data to custom wordpress database table
- making php value numeric
- SQL error with custom query
- Modify WooCommerce used to get all orders in dashboard
- Using Ajax to submit a form, and run a SQL Select query based on user input from the form
- Trying to update Woocommerce meta values
- PHP multiple forms, same page, isset($_POST[]) not working?
- How to change this ajax function to submit to the default wordpress content area instead of the custom field ‘seller notes’?
- Insert data from form to database
- Creating wordpress user registration form
- How can I display a query in a page?
- Processing forms with php to wordpress database
- Post from front end form to post_meta
- Passed variable gets undefined variable error on insert on next page
- Styling admin page rows in order of importance (checkboxes)
- Display default WordPress login/registration form into a modal window
- User driven content problems
- Trouble using wordpress functions in a pop-up modal form
- ajax form function error
- How to pass username into form that sends data to database
- Send foreach $_post method to contact form 7 [closed]
- Contact form with dynamic dropdown and filter
- Custom form that stores data in mysql database
- Frontend redirect after delete post in wordpress
- Putting form result in my database
- Can’t insert into a database wordpress
- Displaying Logged-In User Name in WordPress Menu
- Genesis – Customize search form
- Set media upload attachment link to none and hide it in WP v3.5
- How to add default images into theme customizer image control?
- How can one utilize a variable as a callback function name for add_settings_field
- Custom Logo URL | Help me print the URL of the custom logo I inserted into my theme
- Adding Default Settings to Theme My Login plugin
- WordPress Site Running Extremely Slow on Dedicated Server
- function to assign user role based on a field from usermeta
- WordPress Gravatar filter is removing my custom attributes
- Refresh table data with Ajax
- Incorrect amount of posts returned when filtering related Woo products by custom taxonomy
- How i can obtain all the post meta for a specific post as an array?
- How to list posts from a plugin taxonomy?
- Filtering a function’ output for a new continued function
- first instantiated SimplePie object cosumes 5mb?
- Theme not calling Jquery properly
- Creating Database Table vs. Adding MetaData to Post & User
- How to put a form with php code into a variable or shortcode?
- WordPress redirect redirecting too many times or not at all
- If Array Values Match Another Array’s Values, Then
- Capture form data in one function and use it in another function (same file)
- Open and closed function [closed]
- Need to Modify a WordPress Shortcode with another wordpress shortcode
- Plugin: Front-end Editor – User role specific editable content?
- Remove role of user after X days
- User filter posts by year
- bp-custom.php is not working on a WordPress multisite environment. how to fix it?
- Adding wp users ID into a link address from a DIVI modul
- Limit Search to Product Pages only unless I’m on Blogpage or Blogposts
- WP query posts BUT show the most recent and one per author
- Block error message in foreach loop when looping through ACF field
- Include User ID in iFrame URL
- Outputting post content to jQuery .html() string
- “Class Not Found” in HTML Form Target PHP File that contains the class
- shortcodes, custom php and their errors
- Submitting form to PHP
- In a foreach loop, how can I add a meta value if it doesn’t exist?
- Remove node from multisites?
- How to add custom text near category/tag title in WordPress Twenty Fifteen Theme?
- How do I get the featured post to share on Social Media and show on Individual Post pages?
- Echo multiple tasks if a common function exists
- Add end mark at the end of every article
- Accessing values entered via form – try again
- Nonce fail after second submit attempt
- ISOTOPE – Missing/Invalid Arguement Get Terms
- Data inserted in database, but ajax calls error function
- Pagination not displaying
- Setting WooCommerce currency programmatically
- Masking external links with internal link for member-only
- Submit cf7 form to cfdb as pdf/BLOB [closed]
- Add attribute to featured image with filter (wp_get_attachment_image_attributes)
- get second ID from array