{"id":10137,"date":"2025-02-04T17:07:58","date_gmt":"2025-02-04T06:07:58","guid":{"rendered":"https:\/\/brickslabs.com\/?p=10137"},"modified":"2025-02-04T17:08:14","modified_gmt":"2025-02-04T06:08:14","slug":"checking-publishpress-future-plugins-future-action-enabled-posts","status":"publish","type":"post","link":"https:\/\/brickslabs.com\/checking-publishpress-future-plugins-future-action-enabled-posts\/","title":{"rendered":"Checking &#8216;PublishPress Future&#8217; plugin&#8217;s Future Action enabled posts"},"content":{"rendered":"<div class=\"mp_wrapper\">\n  <div class=\"mepr-unauthorized-excerpt\">\n    <p><a href=\"https:\/\/wordpress.org\/plugins\/post-expirator\/\" target=\"_blank\" rel=\"noreferrer noopener\">PublishPress Future<\/a> is a handy plugin for scheduling actions like unpublishing or deleting posts (of any post type) at a specified date and time in the future.<\/p>\n<figure class=\"wp-block-image size-large is-resized\"><img src=\"https:\/\/brickslabs.com\/wp-content\/uploads\/2025\/02\/CleanShot-2025-02-04-at-17.03.03@2x-465x1024.png\" alt=\"\" class=\"wp-image-10141\" \/><\/figure>\n<p>It provides a handy <code>[futureaction]<\/code> shortcode that outputs the current single post's action date.<\/p>\n<p>If you are looking to conditionally output an element in <a href=\"https:\/\/brickslabs.com\/go\/bricks\" target=\"_blank\" rel=\"noreferrer noopener\">Bricks<\/a> depending on whether the current post has a PublishPress Future action set, define a custom PHP function like this:<\/p>\n  <\/div>\n  <div class=\"mepr-unauthorized-message\">\n    <p>This is a BricksLabs Pro tutorial.<\/p>\n<p>For full access login below or create your <a href=\"https:\/\/brickslabs.com\/pro\/\">BricksLabs Pro account<\/a><\/p>\n  <\/div>\n  <div class=\"mepr-login-form-wrap\">\n            \n<div class=\"mp_wrapper mp_login_form\">\n                  <!-- mp-login-form-start -->     <form name=\"mepr_loginform\" id=\"mepr_loginform\" class=\"mepr-form\" action=\"https:\/\/brickslabs.com\/login\/\" method=\"post\">\n            <div class=\"mp-form-row mepr_username\">\n        <div class=\"mp-form-label\">\n                              <label for=\"user_login\">Username<\/label>\n        <\/div>\n        <input type=\"text\" name=\"log\" id=\"user_login\" value=\"\" \/>\n      <\/div>\n      <div class=\"mp-form-row mepr_password\">\n        <div class=\"mp-form-label\">\n          <label for=\"user_pass\">Password<\/label>\n          <div class=\"mp-hide-pw\">\n            <input type=\"password\" name=\"pwd\" id=\"user_pass\" value=\"\" \/>\n            <button type=\"button\" class=\"button mp-hide-pw hide-if-no-js\" data-toggle=\"0\" aria-label=\"Show password\">\n              <span class=\"dashicons dashicons-visibility\" aria-hidden=\"true\"><\/span>\n            <\/button>\n          <\/div>\n        <\/div>\n      <\/div>\n            <div>\n        <label><input name=\"rememberme\" type=\"checkbox\" id=\"rememberme\" value=\"forever\" \/> Remember Me<\/label>\n      <\/div>\n      <div class=\"mp-spacer\">&nbsp;<\/div>\n      <div class=\"submit\">\n        <input type=\"submit\" name=\"wp-submit\" id=\"wp-submit\" class=\"button-primary mepr-share-button \" value=\"Log In\" \/>\n        <input type=\"hidden\" name=\"redirect_to\" value=\"\/wp-json\/wp\/v2\/posts\/10137\" \/>\n        <input type=\"hidden\" name=\"mepr_process_login_form\" value=\"true\" \/>\n        <input type=\"hidden\" name=\"mepr_is_login_page\" value=\"false\" \/>\n      <\/div>\n    <\/form>\n    <div class=\"mp-spacer\">&nbsp;<\/div>\n    <div class=\"mepr-login-actions\">\n        <a\n          href=\"https:\/\/brickslabs.com\/login\/?action=forgot_password\"\n          title=\"Click here to reset your password\"\n        >\n          Forgot Password        <\/a>\n    <\/div>\n\n      \n    <!-- mp-login-form-end --> \n  <\/div>\n      <\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>PublishPress Future is a handy plugin for scheduling actions like unpublishing or deleting posts (of any post type) at a specified date and time in the future. It provides a handy [futureaction] shortcode that outputs the current single post&#8217;s action date. If you are looking to conditionally output an element in Bricks depending on whether [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":10142,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_seopress_robots_primary_cat":"none","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":""},"categories":[5,7,9],"tags":[293],"topic":[267],"class_list":["post-10137","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bricks","category-plugins","category-pro","tag-publishpress","topic-conditions"],"acf":[],"featured_image_src":"https:\/\/brickslabs.com\/wp-content\/uploads\/2025\/02\/checking-publish-press-future-plugins-future-action-enabled-posts-600x400.png","featured_image_src_square":"https:\/\/brickslabs.com\/wp-content\/uploads\/2025\/02\/checking-publish-press-future-plugins-future-action-enabled-posts-600x600.png","author_info":{"display_name":"Sridhar Katakam","author_link":"https:\/\/brickslabs.com\/author\/sridhar\/"},"_links":{"self":[{"href":"https:\/\/brickslabs.com\/wp-json\/wp\/v2\/posts\/10137","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/brickslabs.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/brickslabs.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/brickslabs.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/brickslabs.com\/wp-json\/wp\/v2\/comments?post=10137"}],"version-history":[{"count":0,"href":"https:\/\/brickslabs.com\/wp-json\/wp\/v2\/posts\/10137\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/brickslabs.com\/wp-json\/wp\/v2\/media\/10142"}],"wp:attachment":[{"href":"https:\/\/brickslabs.com\/wp-json\/wp\/v2\/media?parent=10137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/brickslabs.com\/wp-json\/wp\/v2\/categories?post=10137"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/brickslabs.com\/wp-json\/wp\/v2\/tags?post=10137"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/brickslabs.com\/wp-json\/wp\/v2\/topic?post=10137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}