Document_Expiry_Handler implements Registerable, Standard_Service
Handler for general document expiry hooks
Tags
Interfaces, Classes and Traits
- Registerable
- Standard_Service
Table of Contents
- maybe_add_expired_title_prefix() : string
- Add an expired prefix to the title
- register() : mixed
- {@inheritdoc}
- remove_expiry_on_status_change() : mixed
- Remove the expiry stamp on post status change from private
Methods
maybe_add_expired_title_prefix()
Add an expired prefix to the title
public
maybe_add_expired_title_prefix(string $title, WP_Post $post) : string
Parameters
- $title : string
- $post : WP_Post
Return values
string —register()
{@inheritdoc}
public
register() : mixed
Return values
mixed —remove_expiry_on_status_change()
Remove the expiry stamp on post status change from private
public
remove_expiry_on_status_change(string $new_status, string $old_status, WP_Post $post) : mixed
Parameters
- $new_status : string
- $old_status : string
- $post : WP_Post