Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion plugins/hwp-previews/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ With HWP Previews, you can define dynamic URL templates, enforce unique slugs fo
* `{slug}` – Post slug
* `{parent_ID}` – Parent post ID (hierarchical types)
* `{type}` – Post type slug
* `{uri}` – Page URI/path
* `{template}` – Template filename

* **Unique Post Slugs**: Force unique slugs for all post statuses in the post status config.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ public static function add_initial_parameters( self $instance ): self {
new Preview_Parameter( 'parent_ID', static fn( WP_Post $post ) => (string) $post->post_parent, 'ID of a post parent post.' )
)->register(
new Preview_Parameter( 'type', static fn( WP_Post $post ) => $post->post_type, 'The post type, like post or page.' )
)->register(
new Preview_Parameter( 'uri', static fn( WP_Post $post ) => (string) get_page_uri( $post ), 'The URI path for a page.' )
)->register(
new Preview_Parameter( 'template', static fn( WP_Post $post ) => (string) get_page_template_slug( $post ), 'Specific template filename for a given post.' )
);
Expand Down
Loading