BP_Group_Extension::detect_post_save_redirect( string $redirect = '' )

Detect redirects hardcoded into edit_screen_save() callbacks.

Description

Parameters

$redirect

(Optional) Redirect string.

Default value: ''

Return

(string)

Source

File: bp-groups/classes/class-bp-group-extension.php

	public function detect_post_save_redirect( $redirect = '' ) {
		if ( ! empty( $redirect ) ) {
			$this->post_save_redirect = $redirect;
		}

		return $redirect;
	}

Changelog

Changelog
Version Description
BuddyPress 2.1.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.