BP_Members_Admin::signup_screen_options( int $value, string $option = '', int $new_value )

Display the admin preferences about signups pagination.


Parameters Parameters

$value

(int) (Required) Value for signup option.

$option

(string) (Optional) Value for the option key.

Default value: ''

$new_value

(int) (Required) Value for the saved option.


Top ↑

Return Return

(int) The pagination preferences.


Source Source

File: bp-members/classes/class-bp-members-admin.php

	public function signup_screen_options( $value = 0, $option = '', $new_value = 0 ) {
		if ( 'users_page_bp_signups_network_per_page' != $option && 'users_page_bp_signups_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

Changelog
Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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