premise_field()

deprecated since v2.0.0 – Please use pwp_field() instead.

This function creates an HTML field and echoes it or returns it as a string.

It takes 3 parameters – type | arguments | echo. All parameters are optional; by default this function echoes a basic text field.

Here is a quick example for a text field with the name attribute ‘my_option’.

premise_field( 'text', array( 'name' => 'my_option' ) );

(more…)