Breadcrumb_Trail::add_path_parents( string $path )
Get parent posts by path. Currently, this method only supports getting parents of the ‘page’ post type. The goal of this function is to create a clear path back to home given what would normally be a “ghost” directory. If any page matches the given path, it’ll be added.
Package
Description Description
Parameters Parameters
- $path
(string) (Required) The path (slug) to search for posts by.
Return Return
(void)
Changelog Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |