Description
Display form to edit a custom taxonomy
Usage
oik_tax_edit_taxonomy();Parameters
Returns
voidSource
File name: oik-types/admin/oik-taxonomies.phpLines:
1 to 19 of 19
function oik_tax_edit_taxonomy( ) { global $bw_taxonomy; bw_form(); stag( "table", "wide-fat" ); bw_tablerow( array( "Name", $bw_taxonomy['args']['taxonomy'] . ihidden( 'taxonomy', $bw_taxonomy['args']['taxonomy']) ) ); $taxonomy_types = oik_tax_query_taxonomy_types(); $type = bw_array_get( $taxonomy_types, $bw_taxonomy['args']['type'], " " ); bw_tablerow( array( "Type", $type . ihidden( 'type', $bw_taxonomy['args']['type']) ) ); BW_::bw_textfield( "label", 32, __( "Label", "oik-types" ), stripslashes( $bw_taxonomy['args']['label'] ) ); $singular_name = bw_return_singular_name( $bw_taxonomy['args'] ); BW_::bw_textfield( "singular_name", 30, __( "Singular label", "oik-types" ), stripslashes( $singular_name ) ); BW_::bw_textfield( "title", 100, __( "Title", "oik-types" ), stripslashes( $bw_taxonomy['args']['title'] ) ); bw_checkbox( "show_in_rest", __( "Show in REST", "oik-types" ), bw_array_get( $bw_taxonomy['args'], 'show_in_rest', null ) ); etag( "table" ); e( isubmit( "_oik_tax_edit_taxonomy", __( "Change taxonomy", "oik-types" ), null, "button-primary" ) ); etag( "form" ); }View on GitHub
Called by
Invoked by
Calls
1 to 10 of 10
- bw_array_get() – Return the array[index] or array->index (for an object) or a default value if not set
- bw_form() – Start a form
- bw_tablerow() – Display a table row or table head row when $tdtag = "th"
- 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_tax_query_taxonomy_types() – Return the different choices for Taxonomy type
- p() – Output a paragraph of translatable text
- stag() – Output an HTML opening tag
