Download the PHP package kuuak/wordpress-setting-fields without Composer

On this page you can find all versions of the php package kuuak/wordpress-setting-fields. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wordpress-setting-fields

wordpress-setting-fields

WordPress setting field functions to output different type of fields.

Field types

Text

Name: Kuuak\WordPressSettingFields\Fields::text

Arguments: name type mandatory Description
type string false Optional. HTML input type attribute or textarea. Default: text
id string false Optional. Id attribute for the input. Default. the name argument
name string true Name of the input
value string false Optional. Current value of the input
required boolean false Optional. Whether the input is required. Default false
placeholder string false Optional.
attrs array false Optional. Extra html atrributes for the input. Attributes' name are the keys of the associative array.
help string false Optional. Help / description

Example of usage

Dropdown

Name: Kuuak\WordPressSettingFields\Fields::dropdown

Arguments: name type mandatory Description
id string false Optional. Id attribute for the dropdown. Default. the name argument
name string true Name of the dropdown
multiple boolean false Optional. Define if multiple options can be selected in the list.
selected string string[] false Optional. Selected value or values
required boolean false Optional. Whether the dropdown is required. Default false
show_option_all string false Optional. Text to display for showing all items. Default empty.
options Array true Array of dropdown items. Items with keys value & title.
placeholder string false
help string false Optional. Help / description. Default empty.
echo boolean false Optional. Whether to echo or return the generated markup. Default true.

Example of usage

Switch (toggle)

Name: Kuuak\WordPressSettingFields\Fields::switch

Arguments: name type mandatory Description
id string false Optional. Id attribute for the input. Default. the name argument
name string true Name of the input
checked boolean true
help string false Optional. Help / description
nice_ui boolean false Optional. Display as a nicer ui. Default true.

Example of usage

Post type (dropdown)

Name: Kuuak\WordPressSettingFields\Fields::post_type_dropdown

Arguments:

name type mandatory Description
query_args array false WP_Query arguments. _See WP_Query::_construct() for accepted arguments
name string true Name of the dropdown
selected int string int[] string[] false Optional. Value of the option that should be selected. Default 0.
required boolean false Optional. Whether the dropdown is required. Default false
placeholder string false Optional.
show_option_all string false Optional. Option all label for the Multiple version. Default All
help string false Optional. Help / description
echo boolean false Optional. Either to print the dropdown or not. Default true.
nice_ui boolean false Optional. Display as a nicer ui. Default true.
attrs array false Optional. Extra html atrributes for the select input. Attributes' name are the keys of the associative array.

Example of usage

Taxonomy (dropdown)

Name: Kuuak\WordPressSettingFields\Fields::taxonomy_dropdown

Arguments:

_See WP_Term_Query::_construct() for information on additional accepted arguments

name type mandatory Description
name string true Name of the dropdown
taxonomy string true Name of the taxonomy to
selected int string int[] string[] false Optional. Value of the option that should be selected. Default 0.
required boolean false Optional. Whether the dropdown is required. Default false
show_option_all string false Optional. Option all label for the Multiple version. Default All
hide_empty string false Optional. Option all label
help string false Optional. Help / description
echo boolean false Optional. Either to print the dropdown or not. Default true.

Example of usage

Pages (dropdown)

Name: Kuuak\WordPressSettingFields\Fields::pages_dropdown

Arguments:

_See getpages() for additional arguments

name type mandatory Description
name string true Name of the dropdown
selected int string false Optional. Value of the option that should be selected. Default 0.
required boolean false Optional. Whether the dropdown is required. Default false
help string false Optional. Help / description. Default empty
echo boolean false Optional. Either to print the dropdown or not. Default true.

Example of usage

Button

Name: Kuuak\WordPressSettingFields\Fields::button

Arguments:

name type mandatory Description
id string false Optional. Id attribute for the button. Default. the name argument
name string true Name of the button
label string true Label of the button
variant string false Optional. Variant of the button. primary or secondary. Default secondary
action array false Action data
action.name string true Action name
action.value string true Action value
wrapper_attrs array false Optional. Extra html atrributes for the wrapper. Attributes' name are the keys of the associative array.
help string false Optional. Help / description. Default empty

Example of usage

Changelog

[1.1.2] - 2023-07-14

[1.1.1] - 2023-07-14

[1.1.0] - 2023-07-13

[1.0.0] - 2023-06-15


All versions of wordpress-setting-fields with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kuuak/wordpress-setting-fields contains the following files

Loading the files please wait ....