BP_Admin_Tab::add_field( $name, $label, $callback, $field_args = array(), $callback_args = array(), $id = null )
Add a wp setting field to a wp setting section. Chainable
Description
Source
File: bp-core/classes/class-bp-admin-tab.php
public function add_field( $name, $label, $callback, $field_args = [], $callback_args = [], $id = null ) { if ( !$id ) { $id = $this->active_section; } add_settings_field( $name, $label, $callback, $this->tab_name, $id, $callback_args ); register_setting( $this->tab_name, $name, $field_args ); return $this; }
Changelog
Version | Description |
---|---|
BuddyBoss 1.0.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.