You appear to be a bot. Output may be restricted
Description
Add a Taxonomy name
Usage
oik_tax_add_oik_tax();
Parameters
Returns
voidSource
File name: oik-types/admin/oik-taxonomies.phpLines:
1 to 20 of 20
function oik_tax_add_oik_tax( ) { global $bw_taxonomy; bw_form(); stag( "table", "wide-fat" ); BW_::bw_textfield( "taxonomy", 32, __( "Name", "oik-types" ), $bw_taxonomy['args']['taxonomy'] ); bw_textfield( "label", 32, "Label", $bw_taxonomy['args']['label'] ); $singular_name = bw_return_singular_name( $bw_taxonomy['args'] ); bw_textfield( "singular_name", 32, "Singular label", $singular_name ); // $taxonomy_types = apply_filters( "oik_query_taxonomy_types", array() ); $taxonomy_types = oik_tax_query_taxonomy_types(); bw_trace2( $taxonomy_types, "taxonomy_types" ); bw_select( "type", "Type", null, array( "#options" => $taxonomy_types ) ); bw_textfield( "title", 100, "Title", stripslashes( $bw_taxonomy['args']['title'] ) ); bw_checkbox( "show_in_rest", "Show in REST", $bw_taxonomy['args']['show_in_rest'] ); etag( "table" ); p( isubmit( "_oik_tax_add_oik_tax", "Add new taxonomy", null, "button-primary" ) ); etag( "form" ); }View on GitHub