bp_groups_admin_screen_options( string $value, string $option, string $new_value )

Handle save/update of screen options for the Groups component admin screen.

Parameters Parameters


(string) (Required) Will always be false unless another plugin filters it first.


(string) (Required) Screen option name.


(string) (Required) Screen option form value.

Top ↑

Return Return

(string|int) Option value. False to abandon update.

Source Source

File: bp-groups/bp-groups-admin.php

function bp_groups_admin_screen_options( $value, $option, $new_value ) {
	if ( 'toplevel_page_bp_groups_per_page' != $option && 'toplevel_page_bp_groups_network_per_page' != $option )
		return $value;

	// Per page.
	$new_value = (int) $new_value;
	if ( $new_value < 1 || $new_value > 999 )
		return $value;

	return $new_value;

Top ↑

Changelog Changelog

Version Description
1.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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