Update taxonomies.

This commit is contained in:
Hoang Huu
2019-10-29 15:02:04 +07:00
parent 327a3aa1c4
commit 052037d025
9 changed files with 35 additions and 115 deletions

View File

@@ -28,6 +28,11 @@ class Opalestate_Taxonomy_Type {
public function __construct() {
add_action( 'init', [ $this, 'definition' ] );
add_action( 'cmb2_admin_init', [ $this, 'taxonomy_metaboxes' ] );
add_filter( 'get_opalestate_types', function( $term ){
$term->meta = get_term_meta( $term->term_id ); // all metadata
return $term;
} );
}
/**