/** * 电巢子主题 V2.0 — Taxonomy 扩展(基于 OneNav 父主题) * * 父主题 OneNav 已注册 4 个 CPT:sites / app / book / bulletin * 子主题不重复注册 CPT,只在父主题的 CPT 上扩展额外 Taxonomy: * - site_cat (网址分类,挂在父主题的 sites) * - site_tag (网址标签,挂在父主题的 sites) * - site_country (网址国家/地区,挂在父主题的 sites / app / book) * * @package DianChao */ if (!defined('ABSPATH')) exit; /* ============================ * 1. 网址分类(site_cat) * 挂在父主题 'sites' CPT 上 * ============================ */ add_action('init', function () { if (taxonomy_exists('site_cat')) return; register_taxonomy('site_cat', ['sites'], [ 'labels' => [ 'name' => '网址分类', 'singular_name' => '网址分类', 'search_items' => '搜索分类', 'all_items' => '所有分类', 'parent_item' => '父级分类', 'edit_item' => '编辑分类', 'update_item' => '更新分类', 'add_new_item' => '添加新分类', 'menu_name' => '网址分类', ], 'public' => true, 'show_in_rest' => true, 'hierarchical' => true, 'rewrite' => ['slug' => 'site-cat'], ]); }); /* ============================ * 2. 网址标签(site_tag) * 挂在父主题 'sites' CPT 上 * ============================ */ add_action('init', function () { if (taxonomy_exists('site_tag')) return; register_taxonomy('site_tag', ['sites'], [ 'labels' => [ 'name' => '网址标签', 'singular_name' => '网址标签', 'search_items' => '搜索标签', 'menu_name' => '网址标签', ], 'public' => true, 'show_in_rest' => true, 'hierarchical' => false, 'rewrite' => ['slug' => 'site-tag'], ]); }); /* ============================ * 3. 国家/地区(site_country) * 挂在父主题 'sites' / 'app' / 'book' CPT 上 * ============================ */ add_action('init', function () { if (taxonomy_exists('site_country')) return; register_taxonomy('site_country', ['sites', 'app', 'book'], [ 'labels' => [ 'name' => '国家/地区', 'singular_name' => '国家/地区', 'search_items' => '搜索国家', 'all_items' => '所有国家', 'edit_item' => '编辑国家', 'update_item' => '更新国家', 'add_new_item' => '添加新国家', 'menu_name' => '国家/地区', ], 'public' => true, 'show_in_rest' => true, 'hierarchical' => true, 'rewrite' => ['slug' => 'site-country'], ]); });
现在很多的淘宝商家都会选择推广,因为只有这样 856
相信安装了淘宝APP的人,都看到过聚划算这个 857
很多朋友在购物的时候,第一选择就是喜欢自己购 1.6K
流量一直都是淘宝店铺比较重要的,但是的途径比 1.6K
淘宝直通车是淘宝商家们常用的一种推广方式。最 1.6K
淘宝卖家们为了能够更好的运营好淘宝店铺,自然 860
商家越来越多,淘宝卖家越来越多,竞争很激烈。 1.5K
据说在淘宝上开店后,还可以享受新店的福利哟, 882
对于淘宝店铺而言,一款产品要有足够的曝光率, 1.5K
直通车开的好不好,质量分很关键。如果质量分太 1.5K