/** * 电巢子主题 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'], ]); });
推广去开直通车基本上是很常见的事情,但是有问题需 1.2K
的产品在进行推广的时候,需要使用推广工具来进行, 1.3K
现在做推广,如果你还不懂得做搜索人群的话,那你可 1.3K
们都是十分关注淘宝店铺开直通车的转化能力,如果转 1.3K
作为付费推广,为店铺带来的流量是比较精准的,我们 1.1K
淘宝直通车有出价的设置、投放区域的设置也有投放人 620
大家都知道是按点击收费的,但是收费的计费原则是什 626
有的淘宝商家知道什么是直通车开车,也知道补单补词 1.3K
商家为了提升店铺流量,除了通过一些活动进行引流推 1.2K
在我们淘宝店的前期。为了能够提升自己的销量, 799