Title: Random Post Name
Author: PRESSMAN
Published: <strong>2020 年 6 月 12 日</strong>
Last modified: 2020 年 6 月 12 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/random-post-name.svg)

# Random Post Name

 作者：[PRESSMAN](https://profiles.wordpress.org/pressmaninc/)

[下载](https://downloads.wordpress.org/plugin/random-post-name.zip)

 * [详情](https://cn.wordpress.org/plugins/random-post-name/#description)
 * [评价](https://cn.wordpress.org/plugins/random-post-name/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/random-post-name/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/random-post-name/#developers)

 [支持](https://wordpress.org/support/plugin/random-post-name/)

## 描述

Auto-generate a unique random string and set it to post_name.

#### Customization with hooks

Use of filter hooks is at your own risk.

 * You can change post_type to be applied by an array. Deafult is ‘post’ only.

    ```
    add_filter( 'random_post_name_post_types', 'hoge' );
    function hoge(){
        return ['post', 'page'];
    }
    ```

 * You can change the number of characters in the post_name. Deafult is 10.

    ```
    add_filter( 'random_post_name_digits', 'hoge' );
    function hoge(){
        return 20;
    }
    ```

 * You can change the variation of characters. Deafult is ‘0123456789abcdefghijklmnopqrstuvwxyz’.
   Do not include multibyte chars.

    ```
    add_filter( 'random_post_name_choices', 'hoge' );
    function hoge(){
        return '0123456789abcdefghijkmnpqrstuvwxyz_-';
    }
    ```

### Precautions

Too few characters and too few character variations can cause unexpected problems.

## 安装

 1. Upload the plugin package to the plugins directory.
 2. Activate the plugin through the \’Plugins\’ menu in WordPress.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Random Post Name」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ PRESSMAN ](https://profiles.wordpress.org/pressmaninc/)
 *   [ Hiroshi Sekiguchi ](https://profiles.wordpress.org/hiroshisekiguchi/)
 *   [ kazunao ](https://profiles.wordpress.org/kazunao/)
 *   [ Shotaro Muraoka ](https://profiles.wordpress.org/muraokashotaro/)

[帮助将「Random Post Name」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/random-post-name)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/random-post-name/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/random-post-name/)，或通过[RSS](https://plugins.trac.wordpress.org/log/random-post-name/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/random-post-name/)。

## 更新日志

#### 1.0

 * first version.

## 额外信息

 *  版本 **1.0**
 *  最后更新：**6 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 5.4 或更高版本 **
 *  已测试的最高版本为 **5.4.19**
 *  PHP 版本 ** 7.1.24 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/random-post-name/)
 * 标签
 * [post](https://cn.wordpress.org/plugins/tags/post/)[post_name](https://cn.wordpress.org/plugins/tags/post_name/)
   [pressman](https://cn.wordpress.org/plugins/tags/pressman/)[slug](https://cn.wordpress.org/plugins/tags/slug/)
 *  [高级视图](https://cn.wordpress.org/plugins/random-post-name/advanced/)

## 评级

尚未提交反馈。

[添加我的评价](https://wordpress.org/support/plugin/random-post-name/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/random-post-name/reviews/)

## 贡献者

 *   [ PRESSMAN ](https://profiles.wordpress.org/pressmaninc/)
 *   [ Hiroshi Sekiguchi ](https://profiles.wordpress.org/hiroshisekiguchi/)
 *   [ kazunao ](https://profiles.wordpress.org/kazunao/)
 *   [ Shotaro Muraoka ](https://profiles.wordpress.org/muraokashotaro/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/random-post-name/)