{"id":11653293,"date":"2019-06-19T14:22:52","date_gmt":"2019-06-19T14:22:52","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/improve-plugin\/"},"modified":"2019-06-19T14:22:52","modified_gmt":"2019-06-19T14:22:52","slug":"improve-plugin","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/improve-plugin\/","title":{"rendered":"Improve plugin"},"content":{"rendered":"<p>Hi, great plugin altho could you think in something like this<\/p>\n<pre><code>\n\/\/ ADD THE METABOX TO THE EDIT POSTS PAGE\nfunction hugu_ped_add_expire_date_metabox() {\n    \/\/ADD CUSTOM POST TYPES HERE\n    $screens = apply_filters( &#039;hugu_ped_screens_metabox&#039;, array( &#039;post&#039;, &#039;page&#039;) );\n\n    foreach ( $screens as $screen ) {\n    add_meta_box( &#039;hugu_ped_expire_date_metabox&#039;, __( &#039;Expiration Date&#039;, &#039;hugu&#039;), &#039;hugu_ped_expire_date_metabox_callback&#039;, $screen, &#039;side&#039;, &#039;high&#039; );\n}\n}\nadd_action( &#039;add_meta_boxes&#039;, &#039;hugu_ped_add_expire_date_metabox&#039; );\n<\/code><\/pre>\n<p>That woudl allor others to add this functionality to others Custom Post Type like WooCoomerce.<\/p>\n","protected":false},"template":"","class_list":["post-11653293","topic","type-topic","status-publish","hentry","topic-tag-improve"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11653293","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11653293\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=11653293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}