You appear to be a bot. Output may be restricted
Description
Display a current type$post_type_args['label'] = 'todo'; $post_type_args['description'] = 'todo list items'; $post_type_args['hierarchical'] = true; $post_type_args['has_archive]
Usage
_oik_cpt_type_row( $type, $data );
Parameters
- $type
- ( mixed ) required –
- $data
- ( mixed ) required –
Returns
voidSource
File name: oik-types/admin/oik-types.phpLines:
1 to 24 of 24
function _oik_cpt_type_row( $type, $data ) { bw_trace2(); $row = array(); $row[] = $type; $args = $data['args']; $fields = bw_array_get( $data, 'fields', null ); $row[] = esc_html( stripslashes( $args['label'] ) ) . " "; $singular_name = bw_return_singular_name( $args ); $row[] = esc_html( stripslashes( $singular_name ) ) . " "; $row[] = esc_html( stripslashes( $args['description'] ) ) . " "; $row[] = icheckbox( "hierarchical[$type]", $args['hierarchical'], true ); $args['has_archive'] = bw_array_get( $args, 'has_archive', null ); $row[] = icheckbox( "has_archive[$type]", $args['has_archive'], true ) . $args['has_archive']; $links = null; //$row[] = icheckbox( "expand[$type]", $expand, true ); //$links = retlink( null, admin_url("admin.php?page=oik_types&preview_type=$type"), "Preview" ); //$links .= " "; $links .= retlink( null, admin_url("admin.php?page=oik_types&delete_type=$type"), "Delete" ); $links .= " "; $links .= retlink( null, admin_url("admin.php?page=oik_types&edit_type=$type"), "Edit" ); $row[] = $links; bw_tablerow( $row ); }View on GitHub