Core Function
View Source on Trac ↗ wp_force_plain_post_permalink()
wp_force_plain_post_permalink( mixed $post = null, mixed $sample = null ) Determine whether post should always use a plain permalink structure.
Parameters 2 required
| Name / Type | Description |
|---|---|
| (WP_Post | | int | null) $post Optional. Post ID or post object. Defaults to global $post. Required |
| mixed | (bool | null) $sample Optional. Whether to force consideration based on sample links. If omitted, a sample link is generated if a post object is passed with the filter property set to 'sample'. Required |
Return Value
(bool)
Whether to use a plain permalink structure.
Function Information
Since Version
5.7.0
Source File
wp-includes/link-template.php
Advertisement