Description
Display the Edit type form
Usage
oik_cpt_edit_type();Parameters
Returns
voidSource
File name: oik-types/admin/oik-types.phpLines:
1 to 14 of 14
function oik_cpt_edit_type( ) { global $bw_type; bw_form(); stag( "table", "wide-fat" ); bw_tablerow( array( "type", $bw_type['args']['type'] . ihidden( 'type', $bw_type['args']['type']) ) ); BW_::bw_textfield( "label", 30, __( "Plural label", "oik-types" ), stripslashes( $bw_type['args']['label'] ) ); $singular_name = bw_return_singular_name( $bw_type['args'] ); BW_::bw_textfield( "singular_name", 30, __( "Singular label", "oik-types" ), stripslashes( $singular_name ) ); BW_::bw_textarea( "description", 100, __( "Description", "oik-types" ), stripslashes( $bw_type['args']['description'] ), 2 ); oik_cpt_edit_type_fields( $bw_type ); etag( "table" ); e( isubmit( "_oik_cpt_edit_type", __( "Change type", "oik-types" ), null, "button-primary" ) ); etag( "form" ); }View on GitHub
Called by
Invoked by
Calls
1 to 11 of 11
- bw_form() – Start a form
- bw_return_singular_name() – Return the singular name for the post_type, if defined
- bw_tablerow() – Display a table row or table head row when $tdtag = "th"
- bw_textarea() – Form a "textarea" field
- bw_textfield() – Form a text field
- etag() – Output an end tag
- ihidden() – Return a hidden input field for a form
- isubmit() – Create a submit button
- oik_cpt_edit_type_fields() –
- p() – Output a paragraph of translatable text
- stag() – Output an HTML opening tag
