You appear to be a bot. Output may be restricted
Description
Set default args for a taxonomy
Usage
$array = bw_default_taxonomy_args( $taxonomy, $arg );
Parameters
- $taxonomy
- ( string ) required – the taxonomy name e.g. "country"
- $arg
- ( mixed ) required –
Returns
array updated argsSource
File name: oik/includes/bw_register.phpLines:
1 to 17 of 17
function bw_default_taxonomy_args( $taxonomy, $arg ) { //bw_trace2(); //bw_backtrace(); $args = array(); if ( !is_array( $arg ) ) { $labels = array( "name" => $arg ); } else { $args = $arg; $labels = bw_array_get( $args, "labels", null ); if ( null == $labels ) { $labels = array( "name" => bw_titleify( $taxonomy ) ); } } $args["labels"] = bw_default_taxonomy_labels( $labels ); return( $args ); }View on GitHub View on Trac