bbPress1::callback_topic_subscriptions( string $field )

This callback strips topic- from topic subscriptions taxonomy


Description Description


Parameters Parameters

$field

(Required) Topic ID


Top ↑

Return Return

(integer) WordPress safe


Top ↑

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;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.