WordPress_Security_Txt_Builder

The admin-specific UI builder of the plugin.

package

WordPress_Security_Txt

subpackage

WordPress_Security_Txt/admin

author

Austin Heap me@austinheap.com

Methods

Initialize the class and set its properties.

__construct(string $plugin_name, string $version, array $options) 
since 1.0.0

Arguments

$plugin_name

string

The name of this plugin.

$version

string

The version of this plugin.

$options

array

The options of this plugin.

Creates a checkbox field

checkbox(array $args) : string

Arguments

$args

array

The arguments for the field

Response

string

The HTML field

Creates an editor field

editor(array $args) : string

NOTE: ID must only be lowercase letter, no spaces, dashes, or underscores.

Arguments

$args

array

The arguments for the field

Response

string

The HTML field

Creates a set of radios field

radios(array $args) : string

Arguments

$args

array

The arguments for the field

Response

string

The HTML field

repeater

repeater( $args) 

Arguments

$args

Creates a select field

select(array $args) : string

Note: label is blank since its created in the Settings API

Arguments

$args

array

The arguments for the field

Response

string

The HTML field

Creates a text field

text(array $args) : string

Arguments

$args

array

The arguments for the field

Response

string

The HTML field

Creates a textarea field

textarea(array $args) : string

Arguments

$args

array

The arguments for the field

Response

string

The HTML field

Properties

The ID of this plugin.

plugin_name : string
since
access

private

var

The ID of this plugin.

Type(s)

string

The version of this plugin.

version : string
since
access

private

var

The current version of this plugin.

Type(s)

string

The builder options.

options : array
since
access

private

var

The plugin options.

Type(s)

array