@prefix sioc: <http://rdfs.org/sioc/ns#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix content: <http://purl.org/rss/1.0/modules/content/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<https://lhero.org/portfolio/lh-archived-post-status/>
  a sioc:Post ;
  dc:title "Developer reference" ;
  dcterms:identifier 154017 ;
  dc:modified "2026-11-07T11:29:39Z"^^xsd:dateTime ;
  dc:created "2026-11-07T11:29:39Z"^^xsd:dateTime ;
  sioc:link <https://lhero.org/portfolio/lh-archived-post-status/developer-reference/> ;
  sioc:has_creator <https://lhero.org/author/1/#account> ;
  sioc:has_container <https://lhero.org/#posts> ;
  content:encoded "<ul class=\"lh_portfolio-meta\"><li><strong>Part of:</strong> <a href=\"https://lhero.org/portfolio/lh-archived-post-status/\">LH Archived Post status</a></li></ul><h3 class=\"wp-block-heading\">Filters</h3><ul class=\"wp-block-list\"><li><code>lh_archive_post_status_get_applicable_post_types_filter</code> ( <code>$post_types</code> ): the post type names the archived status applies to. Remove a type here to leave its listings, list table and edit screen untouched. This is the filter to use.</li><li><code>lh_archive_post_status_posttypes_filter</code> ( <code>$post_types</code> ): the older name for the same list, applied just before the filter above. Kept for compatibility.</li><li><code>lh_archive_post_status_return_doing_their_own_thing_post_types</code> ( <code>$post_types</code> ): post types that manage their own publish box, by default <code>advanced_ads</code> and <code>wc_membership_plan</code>. They&#8217;re excluded from the applicable types and from the WP Statuses publish box.</li><li><code>lh_archive_post_status_message_filter</code> ( <code>$message</code>, <code>$content</code> ): the Archive Message HTML, after <code>wpautop()</code>, before it&#8217;s added to an archived post&#8217;s content.</li><li><code>lh_archive_post_status_content_filter</code> ( <code>$updated_content</code>, <code>$content</code> ): the archived post&#8217;s content with the message prepended. Return something else to change the placement.</li><li><code>lh_archive_post_status_get_archive_post_link</code> ( <code>$link</code>, <code>$post</code> ): the one-click archive URL, an admin-ajax request with a nonce that redirects back to the current page.</li><li><code>lh_archive_post_status_input_validation</code> ( <code>$output</code>, <code>$input</code> ): the settings array on save.</li></ul><h3 class=\"wp-block-heading\">Template function</h3><p class=\"wp-block-paragraph\"><code>archive_post_link( $text = null, $before = '', $after = '', $post = 0, $class = 'post-archive-link' )</code> echoes an Archive link for a post, like <code>edit_post_link()</code>. It outputs nothing unless the current user can edit the post and its post type is applicable. The anchor tag passes through the <code>archive_post_link</code> filter ( <code>$link</code>, <code>$post_id</code>, <code>$text</code> ). It&#8217;s only defined if no other plugin has defined it.</p><h3 class=\"wp-block-heading\">Data and cron</h3><ul class=\"wp-block-list\"><li>Post status: <code>archive</code>.</li><li>Post meta <code>_lh_archive_post_status-post_expires</code>: the Archive Date, as <code>Y-m-d H:i:s</code>.</li><li>Option <code>lh_archive_post_status_options</code>: the Reading settings, keys <code>public</code>, <code>lh_archive_post_status-title_label</code> and <code>lh_archive_post_status_message</code>.</li><li>Cron: <code>lh_archived_post_status_run</code> (hourly, archives expired posts) and <code>lh_archived_post_status_initial</code> (once after activation, sets default settings). Both are scheduled on every site when network-activated, and cleared on deactivation.</li></ul><h3 class=\"wp-block-heading\">Integrations</h3><ul class=\"wp-block-list\"><li>Bundles the WP Statuses library, loaded only if no other copy is present.</li><li>Relevanssi: archived posts are treated as valid for indexing and results.</li><li>WP Super Cache and LiteSpeed Cache: when a published item of the <code>post</code> post type is archived, its cache (and the home page, for LiteSpeed) is purged.</li><li>LocalHero plugins: archived posts are included for lh-wayback-machine and the broken link checker when publicly readable, the Archive Date is not copied by lh-copy-to-draft, and an Archive link is added to the More modal.</li></ul>"^^rdf:XMLLiteral ;
  sioc:content "Part of: LH Archived Post statusFilterslh_archive_post_status_get_applicable_post_types_filter ( $post_types ): the post type names the archived status applies to. Remove a type here to leave its listings, list table and edit screen untouched. This is the filter to use.lh_archive_post_status_posttypes_filter ( $post_types ): the older name for the same list, applied just before the filter above. Kept for compatibility.lh_archive_post_status_return_doing_their_own_thing_post_types ( $post_types ): post types that manage their own publish box, by default advanced_ads and wc_membership_plan. They&#8217;re excluded from the applicable types and from the WP Statuses publish box.lh_archive_post_status_message_filter ( $message, $content ): the Archive Message HTML, after wpautop(), before it&#8217;s added to an archived post&#8217;s content.lh_archive_post_status_content_filter ( $updated_content, $content ): the archived post&#8217;s content with the message prepended. Return something else to change the placement.lh_archive_post_status_get_archive_post_link ( $link, $post ): the one-click archive URL, an admin-ajax request with a nonce that redirects back to the current page.lh_archive_post_status_input_validation ( $output, $input ): the settings array on save.Template functionarchive_post_link( $text = null, $before = '', $after = '', $post = 0, $class = 'post-archive-link' ) echoes an Archive link for a post, like edit_post_link(). It outputs nothing unless the current user can edit the post and its post type is applicable. The anchor tag passes through the archive_post_link filter ( $link, $post_id, $text ). It&#8217;s only defined if no other plugin has defined it.Data and cronPost status: archive.Post meta _lh_archive_post_status-post_expires: the Archive Date, as Y-m-d H:i:s.Option lh_archive_post_status_options: the Reading settings, keys public, lh_archive_post_status-title_label and lh_archive_post_status_message.Cron: lh_archived_post_status_run (hourly, archives expired posts) and lh_archived_post_status_initial (once after activation, sets default settings). Both are scheduled on every site when network-activated, and cleared on deactivation.IntegrationsBundles the WP Statuses library, loaded only if no other copy is present.Relevanssi: archived posts are treated as valid for indexing and results.WP Super Cache and LiteSpeed Cache: when a published item of the post post type is archived, its cache (and the home page, for LiteSpeed) is purged.LocalHero plugins: archived posts are included for lh-wayback-machine and the broken link checker when publicly readable, the Archive Date is not copied by lh-copy-to-draft, and an Archive link is added to the More modal." ;
  sioc:topic <https://lhero.org/?taxonomy=author&term=cap-1>, <https://lhero.org/?taxonomy=lh_object_key&term=lh-portfolio_doc_20261107t003200-developer-reference> .

<https://lhero.org/author/1/#account> rdfs:seeAlso <https://lhero.org/author/1/?feed=lhrdf&format=turtle> .
<https://lhero.org/?taxonomy=author&term=cap-1> rdfs:seeAlso <https://lhero.org/?taxonomy=author&term=cap-1&feed=lhrdf&format=turtle> .
<https://lhero.org/?taxonomy=lh_object_key&term=lh-portfolio_doc_20261107t003200-developer-reference> rdfs:seeAlso <https://lhero.org/?taxonomy=lh_object_key&term=lh-portfolio_doc_20261107t003200-developer-reference&feed=lhrdf&format=turtle> .
