mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-20 06:53:23 +09:00
Update taxonomy list
This commit is contained in:
@@ -154,23 +154,6 @@ class Display_Featured_Image_Genesis_Widget_Taxonomy extends WP_Widget {
|
||||
) );
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
protected function get_taxonomies() {
|
||||
$args = array(
|
||||
'public' => true,
|
||||
'show_ui' => true,
|
||||
);
|
||||
$taxonomies = get_taxonomies( $args, 'objects' );
|
||||
$options = array();
|
||||
foreach ( $taxonomies as $taxonomy ) {
|
||||
$options[ $taxonomy->name ] = $taxonomy->label;
|
||||
}
|
||||
|
||||
return $options;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $instance
|
||||
* @param bool $ajax
|
||||
|
||||
Reference in New Issue
Block a user