diff --git a/plugins/hwp-previews/README.md b/plugins/hwp-previews/README.md index 5422ea8e..5a4ff21c 100644 --- a/plugins/hwp-previews/README.md +++ b/plugins/hwp-previews/README.md @@ -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. diff --git a/plugins/hwp-previews/src/Preview/Parameter/Preview_Parameter_Registry.php b/plugins/hwp-previews/src/Preview/Parameter/Preview_Parameter_Registry.php index 08305b42..6d5a479d 100644 --- a/plugins/hwp-previews/src/Preview/Parameter/Preview_Parameter_Registry.php +++ b/plugins/hwp-previews/src/Preview/Parameter/Preview_Parameter_Registry.php @@ -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.' ) );