db_core_remove_file_number_from_slug( $index_file )

Remove file number from slug

Description

Parameters

$index_file

(Required)

Return

(mixed)

Source

File: bp-core/bp-core-help.php

 */
function db_core_remove_file_number_from_slug( $index_file ) {
	$index_file = explode( '-', $index_file );

	if ( ( absint( $index_file[0] ) > 0 || '0' == $index_file[0] ) && count( $index_file ) > 1 ) {
		unset( $index_file[0] );
	}

	return implode( '-', $index_file );

Changelog

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.