Home › Forums › WTI Like Post PRO › custom post type taxonomy › Reply To: custom post type taxonomy
January 3, 2019 at 8:36 am
#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'];
}