bp_core_get_post_slug_by_index( $dir_index_file )
Generate post slug by files name
Description
Parameters
- $dir_index_file
-
(Required)
Return
(string)
Source
File: bp-core/bp-core-functions.php
function bp_core_get_post_slug_by_index( $dir_index_file ) {
$dir_file_array = explode( '/', $dir_index_file );
$index_file = db_core_remove_file_extension_from_slug( end( $dir_file_array ) );
return db_core_remove_file_number_from_slug( $index_file );
}
Changelog
| Version | Description |
|---|---|
| BuddyBoss 1.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.