Build options in the backend of WordPress

Creating options in the WordPress backend just got easier than ever! With pwp_field() you can create options for your theme or plugin quickly without worrying about retrieving the field’s value once something is saved or registering the right hooks for things to work properly. Premise WP will take care of all this for us. Lets take a look at how you can use this powerful function. (more…)


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' ) );