bbPress1::callback_topic_subscriptions( string $field )
This callback strips topic- from topic subscriptions taxonomy
Description Description
Parameters Parameters
- $field
-
(Required) Topic ID
Return Return
(integer) WordPress safe
Source Source
File: includes/admin/converters/bbPress1.php
protected function callback_topic_subscriptions( $field ) {
// Replace 'topic-' with '' so that only the original topic ID remains
$field = absint( (int) preg_replace( '/(topic-)(\d+)/', '$2', $field ) );
return $field;
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.6.0 | Introduced. |