BP_XProfile_Field_Type_Checkbox_Acceptance::admin_save_settings( int $field_id, array $settings )

Save settings from the field edit screen in the Dashboard.


Parameters Parameters

$field_id

(int) (Required) ID of the field.

$settings

(array) (Required) Array of settings.


Top ↑

Return Return

(bool) True on success.


Source Source

File: bp-xprofile/classes/class-bp-xprofile-field-type-checkbox-acceptance.php

	public function admin_save_settings( $field_id, $settings ) {
		if ( isset( $_POST['bp_xprofile_checkbox_acceptance_page'] ) ) {
			bp_xprofile_update_meta( $field_id, 'field', 'bp_xprofile_checkbox_acceptance_page', absint( wp_unslash( $_POST['bp_xprofile_checkbox_acceptance_page'] ) ) );
		}

		return true;
	}


Top ↑

Changelog Changelog

Changelog
Version Description
8.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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