pronamic/wp-pronamic-post-expiration

Easily manage and automate post expiration in WordPress.

dev-main 2024-12-20 15:19 UTC

This package is auto-updated.

Last update: 2024-12-20 15:20:16 UTC


README

Easily manage and automate post expiration in WordPress.

WordPress post statuses

Post status pronamic_expired

This plugin registers the post status pronamic_expired.

Post type support

\register_post_type(
	'your_post_type',
	[
		// …
		'supports'           => [
			'title',
			'editor',
			'thumbnail',
			// …
			'pronamic_expiration',
		],
		// …
	]
);

Advanced support options

\register_post_type(
	'your_post_type',
	[
		// …
		'supports'           => [
			'title',
			'editor',
			'thumbnail',
			// …
			'pronamic_expiration' => [
				'post_status' => 'pronamic_expired',
				'show_ui'     => true,
				'source'      => 'your-plugin-slug',
			],
		],
		// …
	]
);

Links