WpWodify\Settings::add_field
Adds a field to the settings section.
Signature
public function add_field(string
$name,
mixed
$callback )
Parameters
$name
— string- The name of the field.
$callback
— mixed- The callback for dispalying the field.
Returns
- Settings
- Returns $this, for object-chaining.
Test Coverage
Information
- Coverage: 6/6 Lines (100%)
- Tests: 1
- Passed: 1 (100%)
Tests
- [ PASSED ] — WpWodify\SettingsTest::test_add_field with data set #0