wp_force_plain_post_permalink
wp_force_plain_post_permalink ( $post = null, $sample = null )
Parameters:- (WP_Post|int|null) post Optional. Post ID or post object. Defaults to global $post.
- (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'.
Returns:- (bool) Whether to use a plain permalink structure.
Defined at: - Introduced in WordPress: 5.7.0
- Deprecated in WordPress: —
Description
Determine whether post should always use a plain permalink structure.