Home Forums WTI Like Post PRO custom post type taxonomy Reply To: custom post type taxonomy

#702
ジョンジョン
Participant

function override_WtiMostLikedPostsWidget() {
    class WtiMostLikedPosts_Taxonomy extends WtiMostLikedPosts {
        private $taxonomy = 'category';
 
        public function widget( $args, $instance ) {
            if ( !empty( $instance['taxonomy'] ) ) {
                $this->taxonomy = $instance['taxonomy'];
            }