mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-11 18:46:03 +09:00
27 lines
641 B
PHP
27 lines
641 B
PHP
<?php
|
|
|
|
/**
|
|
* Define term specific taxonomy fields.
|
|
*/
|
|
return array(
|
|
array(
|
|
'method' => 'select',
|
|
'args' => array(
|
|
'id' => 'taxonomy',
|
|
'label' => __( 'Taxonomy:', 'display-featured-image-genesis' ),
|
|
'flex' => true,
|
|
'onchange' => sprintf( 'term_postback(\'%s\', this.value );', esc_attr( $this->get_field_id( 'term' ) ) ),
|
|
'choices' => $this->get_taxonomies(),
|
|
),
|
|
),
|
|
array(
|
|
'method' => 'select',
|
|
'args' => array(
|
|
'id' => 'term',
|
|
'label' => __( 'Term:', 'display-featured-image-genesis' ),
|
|
'flex' => true,
|
|
'choices' => $this->get_term_lists( $instance, false ),
|
|
),
|
|
),
|
|
);
|