weDocs 将 ‘docs’ 链接 slug 更改为 ‘documentation’ 或者其他的方法。

标签: 

正在查看 1 个帖子:1-1 (共 1 个帖子)
  • 作者
    帖子
  • 诗语
    管理员
    • 文章数量: 5,929
    @feibisi
    楼主

    默认的链接形式为 docs , 但还是可以调整的,如下:

    /**
     * Changing the <code>docs</code> slug to something else
     *
     * @param array $args
     *
     * @return array
     */
    add_filter( 'wedocs_post_type', function($args) {
    
        $args['rewrite']['slug'] = 'documentation';
    
        return $args;
    } );
正在查看 1 个帖子:1-1 (共 1 个帖子)
  • 哎呀,回复话题必需登录。

话题信息

  • 当前位于:功能改进
  • 0 条回复
  • 1 个参与人
  • 最后回复:<a href="https://bbs.weixiaoduo.com/users/feibisi/" title=" 查看诗语的个人资料" class="bbp-author-link"><span class="bbp-author-name"> 诗语</span></a>
  • 上次活动:<a href="https://bbs.weixiaoduo.com/topic/28016/" title="weDocs 将 'docs' 链接 slug 更改为 'documentation' 或者其他的方法。">6 年、 7 月前</a>