{"id":1612295,"date":"2020-05-13T14:23:52","date_gmt":"2020-05-13T14:23:52","guid":{"rendered":"https:\/\/toolset.com\/?post_type=course-lesson&#038;p=1612295"},"modified":"2025-06-18T05:55:01","modified_gmt":"2025-06-18T05:55:01","slug":"setting-up-automatic-post-expiration","status":"publish","type":"course-lesson","link":"https:\/\/toolset.com\/fr\/course-lesson\/setting-up-automatic-post-expiration\/","title":{"rendered":"Setting up Automatic Post Expiration"},"content":{"rendered":"\n<p>An example would be a site that accepts adverts from users. The user might pay for placing the ad on the site, and it might only be shown for 30 days.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"enabling-automatic-expiration-of-posts\">Enabling Automatic Expiration of Posts<\/h2>\n\n\n\n<p>You can enable automatic expiration of posts from the&nbsp;<strong>Forms<\/strong>&nbsp;tab, on the&nbsp;<strong>Toolset Settings<\/strong>&nbsp;page. You can have posts checked for expiration once hourly, twice daily, or once daily.<\/p>\n\n\n\n<figure class=\"wp-block-image tb-image tb-image-dynamic tb-image-frame-none\" data-toolset-blocks-image=\"d6a345ed82c64627bfb40b33522b93a9\"><a href=\"https:\/\/toolset.com\/wp-content\/uploads\/2020\/05\/toolset-forms-post-expiration-settings.png\"><img decoding=\"async\" width=\"1593\" height=\"659\" loading=\"lazy\" src=\"https:\/\/toolset.com\/wp-content\/uploads\/2020\/05\/toolset-forms-post-expiration-settings.png\" alt=\"\" class=\"wp-image-2813060\" srcset=\"https:\/\/toolset.com\/wp-content\/uploads\/2020\/05\/toolset-forms-post-expiration-settings.png 1593w, https:\/\/toolset.com\/wp-content\/uploads\/2020\/05\/toolset-forms-post-expiration-settings-300x124.png 300w, https:\/\/toolset.com\/wp-content\/uploads\/2020\/05\/toolset-forms-post-expiration-settings-1024x424.png 1024w, https:\/\/toolset.com\/wp-content\/uploads\/2020\/05\/toolset-forms-post-expiration-settings-150x62.png 150w, https:\/\/toolset.com\/wp-content\/uploads\/2020\/05\/toolset-forms-post-expiration-settings-768x318.png 768w, https:\/\/toolset.com\/wp-content\/uploads\/2020\/05\/toolset-forms-post-expiration-settings-1536x635.png 1536w, https:\/\/toolset.com\/wp-content\/uploads\/2020\/05\/toolset-forms-post-expiration-settings-805x333.png 805w\" sizes=\"auto, (max-width: 1593px) 100vw, 1593px\" \/><\/a><figcaption><div class=\"tb-image-caption\">Toolset Forms settings for post expiration<\/div><\/figcaption><\/figure>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"using-automatic-expiration-on-toolset-forms\">Using Automatic Expiration on Toolset forms<\/h2>\n\n\n\n<p>The Toolset form editor has an option in the&nbsp;<strong>Settings<\/strong>&nbsp;section for setting an&nbsp;<strong>Automatic Expiration Date<\/strong>&nbsp;per form. From here, you can enable automatic expiration for a form and set the expiration time. The expiration time can be set in minutes, hours, days or weeks.<\/p>\n\n\n\n<p>You can also set what happens after expiration. The new post status can be set to the following:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Keep original status<\/li>\n\n\n\n<li>Draft<\/li>\n\n\n\n<li>Pending review<\/li>\n\n\n\n<li>Private<\/li>\n\n\n\n<li>Published<\/li>\n\n\n\n<li>Trash<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-media tb-image-frame-none aligncenter\" data-toolset-blocks-image=\"679563464dbd5ce683fb02dacac3cebd\"><a href=\"https:\/\/toolset.com\/wp-content\/uploads\/2014\/08\/cred-post-expiration-options-in-a-form-1.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/toolset.com\/wp-content\/uploads\/2014\/08\/cred-post-expiration-options-in-a-form-1-500x253.png\" alt=\"Forms post expiration options in a form\" class=\"wp-image-1616817\"\/><\/a><figcaption><div class=\"tb-image-caption\">Forms post expiration options in the form editor<\/div><\/figcaption><\/figure>\n<\/div>\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"sending-email-notifications-when-posts-expire\">Sending email notifications when posts expire<\/h2>\n\n\n\n<p>When you enable automatic expiration for a form, a new option is available in the notifications for the Toolset form. You can choose to send a notification message in an amount of minutes, hours, days or weeks before the post will expire. <\/p>\n\n\n\n<p>In the following image, we notify the user who created the advert that it is going to expire in 5 days.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-media tb-image-frame-none aligncenter\" data-toolset-blocks-image=\"f2ab35ac9642abcb8ab49c0027e6d1ef\"><a href=\"https:\/\/toolset.com\/wp-content\/uploads\/2014\/08\/cred-post-expiration-notification-options-1.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/toolset.com\/wp-content\/uploads\/2014\/08\/cred-post-expiration-notification-options-1-500x240.png\" alt=\"Forms settings for email notifications when posts expire\" class=\"wp-image-1616825\"\/><\/a><figcaption><div class=\"tb-image-caption\">Form settings for email notifications when posts expire<\/div><\/figcaption><\/figure>\n<\/div>\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"post-expiration-settings-in-the-wordpress-post-editor\">Post Expiration settings in the WordPress post editor<\/h2>\n\n\n\n<p>When Forms creates posts that are set to expire, the expiration time is also shown in the post editor.<\/p>\n\n\n\n<p>You can manually change the expiration date and status for each post.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-media tb-image-frame-none aligncenter\" data-toolset-blocks-image=\"81b03c4c6a852407057b81c3cdc86d2a\"><img decoding=\"async\" width=\"292\" height=\"325\" loading=\"lazy\" src=\"https:\/\/toolset.com\/wp-content\/uploads\/2014\/08\/cred-post-expiration-for-single-post.png\" alt=\"Forms settings for email notifications when posts expire\" class=\"wp-image-993878\" srcset=\"https:\/\/toolset.com\/wp-content\/uploads\/2014\/08\/cred-post-expiration-for-single-post.png 292w, https:\/\/toolset.com\/wp-content\/uploads\/2014\/08\/cred-post-expiration-for-single-post-134x150.png 134w, https:\/\/toolset.com\/wp-content\/uploads\/2014\/08\/cred-post-expiration-for-single-post-269x300.png 269w\" sizes=\"auto, (max-width: 292px) 100vw, 292px\" \/><figcaption><div class=\"tb-image-caption\">Post expiration settings in the post editor<\/div><\/figcaption><\/figure>\n<\/div>","protected":false},"author":4341,"featured_media":1630737,"template":"","related-lesson":[8429],"class_list":["post-1612295","course-lesson","type-course-lesson","status-publish","has-post-thumbnail","hentry","related-lesson-post-forms"],"_links":{"self":[{"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/course-lesson\/1612295","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/course-lesson"}],"about":[{"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/types\/course-lesson"}],"author":[{"embeddable":true,"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/users\/4341"}],"version-history":[{"count":3,"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/course-lesson\/1612295\/revisions"}],"predecessor-version":[{"id":2813064,"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/course-lesson\/1612295\/revisions\/2813064"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/media\/1630737"}],"wp:attachment":[{"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/media?parent=1612295"}],"wp:term":[{"taxonomy":"related-lesson","embeddable":true,"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/related-lesson?post=1612295"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}